@groovy.transform.CompileStatic final class SecurityRequestHolder extends java.lang.Object
Uses a java.lang.ThreadLocal to store the current request and response.
Type Params | Return Type | Name and description |
---|---|---|
|
static jakarta.servlet.http.HttpServletRequest |
getRequest() Get the current request. |
|
static jakarta.servlet.http.HttpServletResponse |
getResponse() Get the current response. |
|
static void |
reset() Clear the saved request. |
|
static void |
set(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Set the current request and response. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the current request.
Get the current response.
Clear the saved request.
Set the current request and response.
request
- the requestresponse
- the response