public class PortletServletRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
HttpServletRequestWrapper retrieval of the context
path, path info, request URI etc... to return the portal specific
translations.
FIXME javadoc| Modifier | Constructor and Description |
|---|---|
|
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...
|
| 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() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.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(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(javax.servlet.ServletContext context,
javax.servlet.http.HttpSession proxiedSession,
javax.servlet.http.HttpServletRequest request,
String filterPath)
context - proxiedSession - request - filterPath - public Object getAttribute(String name)
getAttribute in interface javax.servlet.ServletRequestgetAttribute in class javax.servlet.ServletRequestWrapperpublic String getContextPath()
getContextPath in interface javax.servlet.http.HttpServletRequestgetContextPath in class javax.servlet.http.HttpServletRequestWrapperpublic String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequestgetPathInfo in class javax.servlet.http.HttpServletRequestWrapperpublic String getQueryString()
getQueryString in interface javax.servlet.http.HttpServletRequestgetQueryString in class javax.servlet.http.HttpServletRequestWrapperpublic String getRequestURI()
getRequestURI in interface javax.servlet.http.HttpServletRequestgetRequestURI in class javax.servlet.http.HttpServletRequestWrapperpublic String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequestgetServletPath in class javax.servlet.http.HttpServletRequestWrapperpublic javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperpublic javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperpublic String getHeader(String name)
getHeader in interface javax.servlet.http.HttpServletRequestgetHeader in class javax.servlet.http.HttpServletRequestWrapperpublic Enumeration getHeaders(String name)
getHeaders in interface javax.servlet.http.HttpServletRequestgetHeaders in class javax.servlet.http.HttpServletRequestWrapperpublic void setCharacterEncoding(String enc) throws UnsupportedEncodingException
setCharacterEncoding in interface javax.servlet.ServletRequestsetCharacterEncoding in class javax.servlet.ServletRequestWrapperUnsupportedEncodingExceptionServletRequestWrapper.setCharacterEncoding(java.lang.String)Copyright © 2015. All rights reserved.