public class CookieRequestCache extends java.lang.Object implements RequestCache
RequestCache which saves the original request URI in a
 cookie.| Modifier and Type | Field and Description | 
|---|---|
protected org.apache.commons.logging.Log | 
logger  | 
| Constructor and Description | 
|---|
CookieRequestCache()  | 
| Modifier and Type | Method and Description | 
|---|---|
javax.servlet.http.HttpServletRequest | 
getMatchingRequest(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
Returns a wrapper around the saved request, if it matches the current request. 
 | 
SavedRequest | 
getRequest(javax.servlet.http.HttpServletRequest request,
          javax.servlet.http.HttpServletResponse response)
Returns the saved request, leaving it cached. 
 | 
void | 
removeRequest(javax.servlet.http.HttpServletRequest request,
             javax.servlet.http.HttpServletResponse response)
Removes the cached request. 
 | 
void | 
saveRequest(javax.servlet.http.HttpServletRequest request,
           javax.servlet.http.HttpServletResponse response)
Caches the current request for later retrieval, once authentication has taken
 place. 
 | 
void | 
setRequestMatcher(RequestMatcher requestMatcher)
Allows selective use of saved requests for a subset of requests. 
 | 
public void saveRequest(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
RequestCachesaveRequest in interface RequestCacherequest - the request to be storedpublic SavedRequest getRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RequestCachegetRequest in interface RequestCacherequest - the current requestpublic javax.servlet.http.HttpServletRequest getMatchingRequest(javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
RequestCachegetMatchingRequest in interface RequestCachepublic void removeRequest(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
RequestCacheremoveRequest in interface RequestCacherequest - the current request, allowing access to the cache.public void setRequestMatcher(RequestMatcher requestMatcher)
saveRequest method.
 If set, only matching requests will be cached.
requestMatcher - a request matching strategy which defines which requests
 should be cached.