|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.web.savedrequest.DefaultSavedRequest
public class DefaultSavedRequest
Represents central information from a HttpServletRequest
.
This class is used by AbstractAuthenticationProcessingFilter
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.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
logger
|
static String |
SPRING_SECURITY_SAVED_REQUEST_KEY
|
Constructor Summary | |
---|---|
DefaultSavedRequest(HttpServletRequest request,
PortResolver portResolver)
|
Method Summary | |
---|---|
boolean |
doesRequestMatch(HttpServletRequest request,
PortResolver portResolver)
Determines if the current request matches the DefaultSavedRequest . |
String |
getContextPath()
|
List<Cookie> |
getCookies()
|
Collection<String> |
getHeaderNames()
|
List<String> |
getHeaderValues(String name)
|
List<Locale> |
getLocales()
|
String |
getMethod()
|
Map<String,String[]> |
getParameterMap()
|
Collection<String> |
getParameterNames()
|
String[] |
getParameterValues(String name)
|
String |
getPathInfo()
|
String |
getQueryString()
|
String |
getRedirectUrl()
Indicates the URL that the user agent used for this request. |
String |
getRequestURI()
|
String |
getRequestURL()
|
String |
getScheme()
|
String |
getServerName()
|
int |
getServerPort()
|
String |
getServletPath()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log logger
public static final String SPRING_SECURITY_SAVED_REQUEST_KEY
Constructor Detail |
---|
public DefaultSavedRequest(HttpServletRequest request, PortResolver portResolver)
Method Detail |
---|
public boolean doesRequestMatch(HttpServletRequest request, PortResolver portResolver)
DefaultSavedRequest
.
All URL arguments are considered but not cookies, locales, headers or parameters.
public String getContextPath()
public List<Cookie> getCookies()
getCookies
in interface SavedRequest
public String getRedirectUrl()
getRedirectUrl
in interface SavedRequest
public Collection<String> getHeaderNames()
getHeaderNames
in interface SavedRequest
public List<String> getHeaderValues(String name)
getHeaderValues
in interface SavedRequest
public List<Locale> getLocales()
getLocales
in interface SavedRequest
public String getMethod()
getMethod
in interface SavedRequest
public Map<String,String[]> getParameterMap()
getParameterMap
in interface SavedRequest
public Collection<String> getParameterNames()
public String[] getParameterValues(String name)
getParameterValues
in interface SavedRequest
public String getPathInfo()
public String getQueryString()
public String getRequestURI()
public String getRequestURL()
public String getScheme()
public String getServerName()
public int getServerPort()
public String getServletPath()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |