@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 HttpServletRequest |
getRequest()Get the current request. |
|
static HttpServletResponse |
getResponse()Get the current response. |
|
static void |
reset()Clear the saved request. |
|
static void |
set(HttpServletRequest request, HttpServletResponse response)Set the current request and response. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Get the current request.
Get the current response.
Clear the saved request.
Set the current request and response.
request - the requestresponse - the response