public class RequestCache extends Object
This class maintains a cache of SavedRequest
instances created from HttpServletRequest
instances. This class
is to be used during authentication to help to retrieve previous informations from the request made for the first time before
the authentication process begins. It also stores the cached request in the user session for later use, if necessary.
Constructor and Description |
---|
RequestCache() |
Modifier and Type | Method and Description |
---|---|
SavedRequest |
removeAndStoreSavedRequestInSession(HttpServletRequest request)
Removes a cached request and stores it in the session.
|
void |
saveRequest(HttpServletRequest request)
Saves a
HttpServletRequest as a SavedRequest instance. |
public void saveRequest(HttpServletRequest request)
Saves a HttpServletRequest
as a SavedRequest
instance. All the state from the original request will be
copied.
request
- public SavedRequest removeAndStoreSavedRequestInSession(HttpServletRequest request)
Removes a cached request and stores it in the session.
Copyright © 2018 JBoss by Red Hat. All rights reserved.