public class SavedRequestAwareWrapper extends SecurityContextHolderAwareRequestWrapper
Note that not all request parameters in the original request are emulated by this wrapper. Nevertheless, the important data from the original request is emulated and this should prove adequate for most purposes (in particular standard HTTP GET and POST operations).
Added into a request by SecurityContextHolderAwareRequestFilter
.
Modifier and Type | Field and Description |
---|---|
protected static Locale |
defaultLocale
The default Locale if none are specified.
|
protected SimpleDateFormat[] |
formats
The set of SimpleDateFormat formats to use in getDateHeader().
|
protected static TimeZone |
GMT_ZONE |
protected static org.apache.commons.logging.Log |
logger |
protected SavedRequest |
savedRequest |
Constructor and Description |
---|
SavedRequestAwareWrapper(javax.servlet.http.HttpServletRequest request,
PortResolver portResolver) |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.Cookie[] |
getCookies()
The default behavior of this method is to return getCookies() on the wrapped request object.
|
long |
getDateHeader(String name)
The default behavior of this method is to return getDateHeader(String name) on the wrapped request
object.
|
String |
getHeader(String name)
The default behavior of this method is to return getHeader(String name) on the wrapped request object.
|
Enumeration |
getHeaderNames()
The default behavior of this method is to return getHeaderNames() on the wrapped request object.
|
Enumeration |
getHeaders(String name)
The default behavior of this method is to return getHeaders(String name) on the wrapped request object.
|
int |
getIntHeader(String name)
The default behavior of this method is to return getIntHeader(String name) on the wrapped request
object.
|
Locale |
getLocale()
The default behavior of this method is to return getLocale() on the wrapped request object.
|
Enumeration |
getLocales()
The default behavior of this method is to return getLocales() on the wrapped request object.
|
String |
getMethod()
The default behavior of this method is to return getMethod() on the wrapped request object.
|
String |
getParameter(String name)
The default behavior of this method is to return getParameter(String name) on the wrapped request
object.
|
Map |
getParameterMap()
The default behavior of this method is to return getParameterMap() on the wrapped request object.
|
Enumeration |
getParameterNames()
The default behavior of this method is to return getParameterNames() on the wrapped request object.
|
String[] |
getParameterValues(String name)
The default behavior of this method is to return getParameterValues(String name) on the wrapped request
object.
|
getRemoteUser, getUserPrincipal, isUserInRole
getAuthType, getContextPath, getPathInfo, getPathTranslated, getQueryString, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
protected static final org.apache.commons.logging.Log logger
protected static final TimeZone GMT_ZONE
protected static Locale defaultLocale
protected SavedRequest savedRequest
protected SimpleDateFormat[] formats
public SavedRequestAwareWrapper(javax.servlet.http.HttpServletRequest request, PortResolver portResolver)
public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface javax.servlet.http.HttpServletRequest
getCookies
in class javax.servlet.http.HttpServletRequestWrapper
public long getDateHeader(String name)
getDateHeader
in interface javax.servlet.http.HttpServletRequest
getDateHeader
in class javax.servlet.http.HttpServletRequestWrapper
name
- DOCUMENT ME!IllegalArgumentException
- DOCUMENT ME!public String getHeader(String name)
getHeader
in interface javax.servlet.http.HttpServletRequest
getHeader
in class javax.servlet.http.HttpServletRequestWrapper
name
- DOCUMENT ME!public Enumeration getHeaderNames()
getHeaderNames
in interface javax.servlet.http.HttpServletRequest
getHeaderNames
in class javax.servlet.http.HttpServletRequestWrapper
public Enumeration getHeaders(String name)
getHeaders
in interface javax.servlet.http.HttpServletRequest
getHeaders
in class javax.servlet.http.HttpServletRequestWrapper
name
- DOCUMENT ME!public int getIntHeader(String name)
getIntHeader
in interface javax.servlet.http.HttpServletRequest
getIntHeader
in class javax.servlet.http.HttpServletRequestWrapper
name
- DOCUMENT ME!public Locale getLocale()
getLocale
in interface javax.servlet.ServletRequest
getLocale
in class javax.servlet.ServletRequestWrapper
public Enumeration getLocales()
getLocales
in interface javax.servlet.ServletRequest
getLocales
in class javax.servlet.ServletRequestWrapper
public String getMethod()
getMethod
in interface javax.servlet.http.HttpServletRequest
getMethod
in class javax.servlet.http.HttpServletRequestWrapper
public String getParameter(String name)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
name
- DOCUMENT ME!public Map getParameterMap()
getParameterMap
in interface javax.servlet.ServletRequest
getParameterMap
in class javax.servlet.ServletRequestWrapper
public Enumeration getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
getParameterNames
in class javax.servlet.ServletRequestWrapper
public String[] getParameterValues(String name)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
name
- DOCUMENT ME!Copyright © 2004–2019 Interface21, Inc. All rights reserved.