Class DefaultSavedRequest
java.lang.Object
org.springframework.security.web.savedrequest.DefaultSavedRequest
- All Implemented Interfaces:
- Serializable,- SavedRequest
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.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultSavedRequest(jakarta.servlet.http.HttpServletRequest request) DefaultSavedRequest(jakarta.servlet.http.HttpServletRequest request, @Nullable String matchingRequestParameterName) 
- 
Method SummaryModifier and TypeMethodDescription@Nullable StringList<jakarta.servlet.http.Cookie>getHeaderValues(String name) String @Nullable []getParameterValues(String name) @Nullable String@Nullable StringIndicates the URL that the user agent used for this request.@Nullable String@Nullable String@Nullable String@Nullable Stringint@Nullable StringtoString()
- 
Field Details- 
loggerprotected static final org.apache.commons.logging.Log logger
 
- 
- 
Constructor Details- 
DefaultSavedRequestpublic DefaultSavedRequest(jakarta.servlet.http.HttpServletRequest request) 
- 
DefaultSavedRequestpublic DefaultSavedRequest(jakarta.servlet.http.HttpServletRequest request, @Nullable String matchingRequestParameterName) 
 
- 
- 
Method Details- 
getContextPath
- 
getCookies- Specified by:
- getCookiesin interface- SavedRequest
 
- 
getRedirectUrlIndicates the URL that the user agent used for this request.- Specified by:
- getRedirectUrlin interface- SavedRequest
- Returns:
- the full URL of this request
 
- 
getHeaderNames- Specified by:
- getHeaderNamesin interface- SavedRequest
 
- 
getHeaderValues- Specified by:
- getHeaderValuesin interface- SavedRequest
 
- 
getLocales- Specified by:
- getLocalesin interface- SavedRequest
 
- 
getMethod- Specified by:
- getMethodin interface- SavedRequest
 
- 
getParameterMap- Specified by:
- getParameterMapin interface- SavedRequest
 
- 
getParameterNames
- 
getParameterValues- Specified by:
- getParameterValuesin interface- SavedRequest
 
- 
getPathInfo
- 
getQueryString
- 
getRequestURI
- 
getRequestURL
- 
getScheme
- 
getServerName
- 
getServerPortpublic int getServerPort()
- 
getServletPath
- 
toString
 
-