|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.apache.wicket.portlet.PortletServletRequestWrapper
public class PortletServletRequestWrapper
Wraps servlet request object with Portlet specific functionality by
overriding the HttpServletRequestWrapper retrieval of the context
path, path info, request URI etc... to return the portal specific
translations.
FIXME javadoc
| Field Summary |
|---|
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
|
PortletServletRequestWrapper(ServletContext context,
HttpServletRequest request,
HttpSession proxiedSession,
String filterPath)
FIXME javadoc Public constructor which internally builds the path info from request URI, instead of deriving it. |
|
PortletServletRequestWrapper(ServletContext context,
HttpServletRequest request,
HttpSession proxiedSession,
String filterPath,
String pathInfo)
FIXME javadoc Public constructor called when not running in a portlet environment, which is passed in the path info instead of deriving it. |
protected |
PortletServletRequestWrapper(ServletContext context,
HttpSession proxiedSession,
HttpServletRequest request,
String filterPath)
Package private constructor which is called from either of the two public constructors - sets up the various portlet specific versions of the context path, servlet path, request URI etc... |
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
|
String |
getContextPath()
|
String |
getHeader(String name)
|
Enumeration |
getHeaders(String name)
|
String |
getPathInfo()
|
String |
getQueryString()
|
String |
getRequestURI()
|
String |
getServletPath()
|
HttpSession |
getSession()
|
HttpSession |
getSession(boolean create)
|
void |
setCharacterEncoding(String enc)
|
| Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
|---|
getAuthType, getCookies, getDateHeader, getHeaderNames, getIntHeader, getMethod, getPathTranslated, getRemoteUser, getRequestedSessionId, getRequestURL, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
| Methods inherited from class javax.servlet.ServletRequestWrapper |
|---|
getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.ServletRequest |
|---|
getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute |
| Constructor Detail |
|---|
public PortletServletRequestWrapper(ServletContext context,
HttpServletRequest request,
HttpSession proxiedSession,
String filterPath)
Public constructor which internally builds the path info from request URI, instead of deriving it.
context - request - proxiedSession - filterPath -
public PortletServletRequestWrapper(ServletContext context,
HttpServletRequest request,
HttpSession proxiedSession,
String filterPath,
String pathInfo)
Public constructor called when not running in a portlet environment, which is passed in the path info instead of deriving it. It overrides the generated request URI from the internal constructor.
context - request - proxiedSession - filterPath - ???pathInfo - ???
protected PortletServletRequestWrapper(ServletContext context,
HttpSession proxiedSession,
HttpServletRequest request,
String filterPath)
context - proxiedSession - request - filterPath - | Method Detail |
|---|
public Object getAttribute(String name)
getAttribute in interface ServletRequestgetAttribute in class ServletRequestWrapperpublic String getContextPath()
getContextPath in interface HttpServletRequestgetContextPath in class HttpServletRequestWrapperpublic String getPathInfo()
getPathInfo in interface HttpServletRequestgetPathInfo in class HttpServletRequestWrapperpublic String getQueryString()
getQueryString in interface HttpServletRequestgetQueryString in class HttpServletRequestWrapperpublic String getRequestURI()
getRequestURI in interface HttpServletRequestgetRequestURI in class HttpServletRequestWrapperpublic String getServletPath()
getServletPath in interface HttpServletRequestgetServletPath in class HttpServletRequestWrapperpublic HttpSession getSession()
getSession in interface HttpServletRequestgetSession in class HttpServletRequestWrapperpublic HttpSession getSession(boolean create)
getSession in interface HttpServletRequestgetSession in class HttpServletRequestWrapperpublic String getHeader(String name)
getHeader in interface HttpServletRequestgetHeader in class HttpServletRequestWrapperpublic Enumeration getHeaders(String name)
getHeaders in interface HttpServletRequestgetHeaders in class HttpServletRequestWrapper
public void setCharacterEncoding(String enc)
throws UnsupportedEncodingException
setCharacterEncoding in interface ServletRequestsetCharacterEncoding in class ServletRequestWrapperUnsupportedEncodingExceptionServletRequestWrapper.setCharacterEncoding(java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||