public class SavedRequestAwareProcessor extends Object implements RequestSecurityProcessor
RequestCache to reconstitute a previously saved request (if there's one). This processor is used
primarily when a user is redirected to the login page because authentication is required, and the the user is
redirected back to the previous page.| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
protected org.springframework.security.web.savedrequest.RequestCache |
requestCache |
| Constructor and Description |
|---|
SavedRequestAwareProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
processRequest(org.craftercms.commons.http.RequestContext context,
RequestSecurityProcessorChain processorChain)
Checks if there's a request in the request cache (which means that a previous request was cached).
|
void |
setRequestCache(org.springframework.security.web.savedrequest.RequestCache requestCache) |
public static final org.slf4j.Logger logger
protected org.springframework.security.web.savedrequest.RequestCache requestCache
public void setRequestCache(org.springframework.security.web.savedrequest.RequestCache requestCache)
public void processRequest(org.craftercms.commons.http.RequestContext context,
RequestSecurityProcessorChain processorChain)
throws Exception
processRequest in interface RequestSecurityProcessorcontext - the context which holds the current request and responseprocessorChain - the processor chain, used to call the next processorExceptionCopyright © 2023 CrafterCMS. All rights reserved.