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 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
-
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:
getCookiesin interfaceSavedRequest
-
getRedirectUrl
Indicates the URL that the user agent used for this request.- Specified by:
getRedirectUrlin interfaceSavedRequest- Returns:
- the full URL of this request
-
getHeaderNames
- Specified by:
getHeaderNamesin interfaceSavedRequest
-
getHeaderValues
- Specified by:
getHeaderValuesin interfaceSavedRequest
-
getLocales
- Specified by:
getLocalesin interfaceSavedRequest
-
getMethod
- Specified by:
getMethodin interfaceSavedRequest
-
getParameterMap
- Specified by:
getParameterMapin interfaceSavedRequest
-
getParameterNames
-
getParameterValues
- Specified by:
getParameterValuesin interfaceSavedRequest
-
getPathInfo
-
getQueryString
-
getRequestURI
-
getRequestURL
-
getScheme
-
getServerName
-
getServerPort
public int getServerPort() -
getServletPath
-
toString
-