# Package org.springframework.security.web.savedrequest

package org.springframework.security.web.savedrequest
Classes related to the caching of an `HttpServletRequest` which requires authentication. While the user is logging in, the request is cached (using the RequestCache implementation) by the ExceptionTranslationFilter. Once the user has been authenticated, the original request is restored following a redirect to a matching URL, and the `RequestCache` is queried to obtain the original (matching) request.

Related Packages
Package
Description
org.springframework.security.web
Spring Security's web security module.
Class
Description
CookieRequestCache
An Implementation of `RequestCache` which saves the original request URI in a cookie.
DefaultSavedRequest
Represents central information from a `HttpServletRequest`.
DefaultSavedRequest.Builder
Enumerator<T>
Adapter that wraps an `Enumeration` around a Java 2 collection `Iterator`.
FastHttpDateFormat
Utility class to generate HTTP dates.
HttpSessionRequestCache
`RequestCache` which stores the `SavedRequest` in the HttpSession.
NullRequestCache
Null implementation of `RequestCache`.
RequestCache
Implements "saved request" logic, allowing a single request to be retrieved and restarted after redirecting to an authentication mechanism.
RequestCacheAwareFilter
Responsible for reconstituting the saved request if one is cached and it matches the current request.
SavedCookie
Stores off the values of a cookie in a serializable holder
SavedRequest
Encapsulates the functionality required of a cached request for both an authentication mechanism (typically form-based login) to redirect to the original URL and for a `RequestCache` to build a wrapped request, reproducing the original request data.
SimpleSavedRequest
A Bean implementation of SavedRequest