org.apache.wicket.protocol.http.portlet
Class PortletServletRequestWrapper
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.apache.wicket.protocol.http.portlet.PortletServletRequestWrapper
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
public class PortletServletRequestWrapper
- extends javax.servlet.http.HttpServletRequestWrapper
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
- Author:
- Ate Douma
Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary |
|
PortletServletRequestWrapper(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession proxiedSession,
String filterPath)
FIXME javadoc |
|
PortletServletRequestWrapper(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession proxiedSession,
String filterPath,
String pathInfo)
FIXME javadoc |
protected |
PortletServletRequestWrapper(javax.servlet.ServletContext context,
javax.servlet.http.HttpSession proxiedSession,
javax.servlet.http.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... |
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getAuthType, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, 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 |
PortletServletRequestWrapper
protected PortletServletRequestWrapper(javax.servlet.ServletContext context,
javax.servlet.http.HttpSession proxiedSession,
javax.servlet.http.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...
- Parameters:
context
- proxiedSession
- request
- filterPath
-
PortletServletRequestWrapper
public PortletServletRequestWrapper(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession proxiedSession,
String filterPath)
- FIXME javadoc
Public constructor which internally builds the path info from request URI, instead of
deriving it.
- Parameters:
context
- request
- proxiedSession
- filterPath
-
PortletServletRequestWrapper
public PortletServletRequestWrapper(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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. It overrides the generated request URI from the internal
constructor.
- Parameters:
context
- request
- proxiedSession
- filterPath
- ???pathInfo
- ???
setCharacterEncoding
public void setCharacterEncoding(String enc)
throws UnsupportedEncodingException
- Specified by:
setCharacterEncoding
in interface javax.servlet.ServletRequest
- Overrides:
setCharacterEncoding
in class javax.servlet.ServletRequestWrapper
- Throws:
UnsupportedEncodingException
- See Also:
ServletRequestWrapper.setCharacterEncoding(java.lang.String)
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getContextPath
in class javax.servlet.http.HttpServletRequestWrapper
getServletPath
public String getServletPath()
- Specified by:
getServletPath
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getServletPath
in class javax.servlet.http.HttpServletRequestWrapper
getPathInfo
public String getPathInfo()
- Specified by:
getPathInfo
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getPathInfo
in class javax.servlet.http.HttpServletRequestWrapper
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURI
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getRequestURI
in class javax.servlet.http.HttpServletRequestWrapper
getQueryString
public String getQueryString()
- Specified by:
getQueryString
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getQueryString
in class javax.servlet.http.HttpServletRequestWrapper
getSession
public javax.servlet.http.HttpSession getSession()
- Specified by:
getSession
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getSession
in class javax.servlet.http.HttpServletRequestWrapper
getSession
public javax.servlet.http.HttpSession getSession(boolean create)
- Specified by:
getSession
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getSession
in class javax.servlet.http.HttpServletRequestWrapper
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interface javax.servlet.ServletRequest
- Overrides:
getAttribute
in class javax.servlet.ServletRequestWrapper
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.