java.lang.Object
com.erudika.para.server.security.SimpleRequestCache
- All Implemented Interfaces:
org.springframework.security.web.savedrequest.RequestCache
public class SimpleRequestCache
extends Object
implements org.springframework.security.web.savedrequest.RequestCache
Simple cache implementation for saving authentication request.
- Author:
- Alex Bogdanovski [[email protected]]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequest
getMatchingRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Returns a matching request.org.springframework.security.web.savedrequest.SavedRequest
getRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Returns a cached request.void
removeRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes a saved request from cache.void
saveRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Saves a request in cache.
-
Constructor Details
-
SimpleRequestCache
public SimpleRequestCache()
-
-
Method Details
-
saveRequest
public void saveRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Saves a request in cache.- Specified by:
saveRequest
in interfaceorg.springframework.security.web.savedrequest.RequestCache
- Parameters:
request
- HTTP requestresponse
- HTTP response
-
getRequest
public org.springframework.security.web.savedrequest.SavedRequest getRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Returns a cached request. NOT USED!- Specified by:
getRequest
in interfaceorg.springframework.security.web.savedrequest.RequestCache
- Parameters:
request
- HTTP requestresponse
- HTTP response- Returns:
- null
-
getMatchingRequest
public jakarta.servlet.http.HttpServletRequest getMatchingRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Returns a matching request. NOT USED!- Specified by:
getMatchingRequest
in interfaceorg.springframework.security.web.savedrequest.RequestCache
- Parameters:
request
- HTTP requestresponse
- HTTP response- Returns:
- null
-
removeRequest
public void removeRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes a saved request from cache.- Specified by:
removeRequest
in interfaceorg.springframework.security.web.savedrequest.RequestCache
- Parameters:
request
- HTTP requestresponse
- HTTP response
-