public class SavedRequest extends Object implements Serializable
HttpServletRequest
.This class is used by AbstractProcessingFilter
and SavedRequestAwareWrapper
to
reproduce the request after successful authentication. An instance of this class is stored at the time of an
authentication exception by ExceptionTranslationFilter
.
IMPLEMENTATION NOTE: It is assumed that this object is accessed only from the context of a single thread, so no synchronization around internal collection classes is performed.
This class is based on code in Apache Tomcat.
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
SavedRequest(javax.servlet.http.HttpServletRequest request,
PortResolver portResolver) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesRequestMatch(javax.servlet.http.HttpServletRequest request,
PortResolver portResolver)
Determines if the current request matches the
SavedRequest . |
String |
getContextPath() |
List |
getCookies() |
String |
getFullRequestUrl()
Indicates the URL that the user agent used for this request.
|
Iterator |
getHeaderNames() |
Iterator |
getHeaderValues(String name) |
Iterator |
getLocales() |
String |
getMethod() |
Map |
getParameterMap() |
Iterator |
getParameterNames() |
String[] |
getParameterValues(String name) |
String |
getPathInfo() |
String |
getQueryString() |
String |
getRequestURI() |
String |
getRequestUrl()
Obtains the web application-specific fragment of the URL.
|
String |
getRequestURL() |
String |
getScheme() |
String |
getServerName() |
int |
getServerPort() |
String |
getServletPath() |
String |
toString() |
public SavedRequest(javax.servlet.http.HttpServletRequest request, PortResolver portResolver)
public boolean doesRequestMatch(javax.servlet.http.HttpServletRequest request, PortResolver portResolver)
SavedRequest
. All URL arguments are
considered, but not method (POST/GET), cookies, locales, headers or parameters.request
- DOCUMENT ME!portResolver
- DOCUMENT ME!public String getContextPath()
public List getCookies()
public String getFullRequestUrl()
public Iterator getHeaderNames()
public Iterator getLocales()
public String getMethod()
public Map getParameterMap()
public Iterator getParameterNames()
public String getPathInfo()
public String getQueryString()
public String getRequestURI()
public String getRequestURL()
public String getRequestUrl()
public String getScheme()
public String getServerName()
public int getServerPort()
public String getServletPath()
Copyright © 2018. All rights reserved.