|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.web.savedrequest.HttpSessionRequestCache
public class HttpSessionRequestCache
RequestCache which stores the SavedRequest in the HttpSession.
The DefaultSavedRequest
class is used as the implementation.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
|
Constructor Summary | |
---|---|
HttpSessionRequestCache()
|
Method Summary | |
---|---|
HttpServletRequest |
getMatchingRequest(HttpServletRequest request,
HttpServletResponse response)
Returns a wrapper around the saved request, if it matches the current request. |
SavedRequest |
getRequest(HttpServletRequest currentRequest,
HttpServletResponse response)
Returns the saved request, leaving it cached. |
void |
removeRequest(HttpServletRequest currentRequest,
HttpServletResponse response)
Removes the cached request |
void |
saveRequest(HttpServletRequest request,
HttpServletResponse response)
Stores the current request, provided the configuration properties allow it. |
void |
setCreateSessionAllowed(boolean createSessionAllowed)
If true , indicates that it is permitted to store the target
URL and exception information in a new HttpSession (the default). |
void |
setJustUseSavedRequestOnGet(boolean justUseSavedRequestOnGet)
If true , will only use DefaultSavedRequest to determine the target URL on successful
authentication if the request that caused the authentication request was a GET. |
void |
setPortResolver(PortResolver portResolver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public HttpSessionRequestCache()
Method Detail |
---|
public void saveRequest(HttpServletRequest request, HttpServletResponse response)
saveRequest
in interface RequestCache
request
- the request to be storedpublic SavedRequest getRequest(HttpServletRequest currentRequest, HttpServletResponse response)
RequestCache
getRequest
in interface RequestCache
public void removeRequest(HttpServletRequest currentRequest, HttpServletResponse response)
RequestCache
removeRequest
in interface RequestCache
public HttpServletRequest getMatchingRequest(HttpServletRequest request, HttpServletResponse response)
RequestCache
getMatchingRequest
in interface RequestCache
public void setJustUseSavedRequestOnGet(boolean justUseSavedRequestOnGet)
true
, will only use DefaultSavedRequest
to determine the target URL on successful
authentication if the request that caused the authentication request was a GET. Defaults to false.
public void setCreateSessionAllowed(boolean createSessionAllowed)
true
, indicates that it is permitted to store the target
URL and exception information in a new HttpSession
(the default).
In situations where you do not wish to unnecessarily create HttpSession
s - because the user agent
will know the failed URL, such as with BASIC or Digest authentication - you may wish to set this property to
false
.
public void setPortResolver(PortResolver portResolver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |