public class PortletServletRequestWrapper extends HttpServletRequestWrapper
HttpServletRequestWrapper retrieval of the context
path, path info, request URI etc... to return the portal specific
translations.
FIXME javadocBASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| Modifier | Constructor and Description |
|---|---|
|
PortletServletRequestWrapper(ServletContext context,
HttpServletRequest request,
HttpSession proxiedSession,
String filterPath)
FIXME javadoc
|
|
PortletServletRequestWrapper(ServletContext context,
HttpServletRequest request,
HttpSession proxiedSession,
String filterPath,
String pathInfo)
FIXME javadoc
|
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...
|
| Modifier and Type | Method and Description |
|---|---|
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) |
authenticate, changeSessionId, getAuthType, getCookies, getDateHeader, getHeaderNames, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getRemoteUser, getRequestedSessionId, getRequestURL, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, startAsync, startAsyncpublic 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 - 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 HttpServletRequestWrapperpublic void setCharacterEncoding(String enc) throws UnsupportedEncodingException
setCharacterEncoding in interface ServletRequestsetCharacterEncoding in class ServletRequestWrapperUnsupportedEncodingExceptionServletRequestWrapper.setCharacterEncoding(java.lang.String)Copyright © 2020. All rights reserved.