public class RequestCacheAdapter extends Object implements RequestCache
Constructor and Description |
---|
RequestCacheAdapter() |
RequestCacheAdapter(RequestCache delegate) |
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.
|
public RequestCacheAdapter()
public RequestCacheAdapter(RequestCache delegate)
public void saveRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RequestCache
saveRequest
in interface RequestCache
request
- the request to be storedpublic SavedRequest getRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RequestCache
getRequest
in interface RequestCache
request
- the current requestpublic javax.servlet.http.HttpServletRequest getMatchingRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RequestCache
getMatchingRequest
in interface RequestCache
public void removeRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RequestCache
removeRequest
in interface RequestCache
request
- the current request, allowing access to the cache.