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 Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSavedRequest
(jakarta.servlet.http.HttpServletRequest request) DefaultSavedRequest
(jakarta.servlet.http.HttpServletRequest request, @Nullable String matchingRequestParameterName) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
List<jakarta.servlet.http.Cookie>
getHeaderValues
(String name) String @Nullable []
getParameterValues
(String name) @Nullable String
@Nullable String
Indicates the URL that the user agent used for this request.@Nullable String
@Nullable String
@Nullable String
@Nullable String
int
@Nullable String
toString()
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
DefaultSavedRequest
public DefaultSavedRequest(jakarta.servlet.http.HttpServletRequest request) -
DefaultSavedRequest
public DefaultSavedRequest(jakarta.servlet.http.HttpServletRequest request, @Nullable String matchingRequestParameterName)
-
-
Method Details
-
getContextPath
-
getCookies
- Specified by:
getCookies
in interfaceSavedRequest
-
getRedirectUrl
Indicates the URL that the user agent used for this request.- Specified by:
getRedirectUrl
in interfaceSavedRequest
- Returns:
- the full URL of this request
-
getHeaderNames
- Specified by:
getHeaderNames
in interfaceSavedRequest
-
getHeaderValues
- Specified by:
getHeaderValues
in interfaceSavedRequest
-
getLocales
- Specified by:
getLocales
in interfaceSavedRequest
-
getMethod
- Specified by:
getMethod
in interfaceSavedRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfaceSavedRequest
-
getParameterNames
-
getParameterValues
- Specified by:
getParameterValues
in interfaceSavedRequest
-
getPathInfo
-
getQueryString
-
getRequestURI
-
getRequestURL
-
getScheme
-
getServerName
-
getServerPort
public int getServerPort() -
getServletPath
-
toString
-