public final class CsrfTokenArgumentResolver
extends java.lang.Object
CsrfToken. For example, the following
RestController will resolve the current CsrfToken:
@RestController
public class MyController {
@MessageMapping("/im")
public CsrfToken csrf(CsrfToken token) {
return token;
}
}
| Constructor and Description |
|---|
CsrfTokenArgumentResolver() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(MethodParameter parameter) |
public boolean supportsParameter(MethodParameter parameter)
public java.lang.Object resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
throws java.lang.Exception
java.lang.Exception