Class HttpRequestResponseHolder
java.lang.Object
org.springframework.security.web.context.HttpRequestResponseHolder
Used to pass the incoming request to
SecurityContextRepository.loadContext(HttpRequestResponseHolder)
, allowing the
method to swap the request for a wrapped version, as well as returning the
SecurityContext value.- Since:
- 3.0
-
Constructor Summary
ConstructorDescriptionHttpRequestResponseHolder
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequest
jakarta.servlet.http.HttpServletResponse
void
setRequest
(jakarta.servlet.http.HttpServletRequest request) void
setResponse
(jakarta.servlet.http.HttpServletResponse response)
-
Constructor Details
-
HttpRequestResponseHolder
public HttpRequestResponseHolder(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-
-
Method Details
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest() -
setRequest
public void setRequest(jakarta.servlet.http.HttpServletRequest request) -
getResponse
public jakarta.servlet.http.HttpServletResponse getResponse() -
setResponse
public void setResponse(jakarta.servlet.http.HttpServletResponse response)
-