@CookieValue. Subclasses extract the cookie value from the request.
An @CookieValue is a named value that is resolved from a cookie.
It has a required flag and a default value to fall back on when the cookie
does not exist.
A WebDataBinder may be invoked to apply type conversion to the
resolved cookie value.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | AbstractCookieValueMethodArgumentResolver(ConfigurableBeanFactory
a bean factory to use for resolving ${...}
placeholder and #{...} SpEL expressions in default values;
or beanFactory)null if default values are not expected to contain expressionsCrate a new |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractNamedValueMethodArgumentResolver. | createNamedValueInfo(MethodParameter
the method parameter parameter)Implements abstract org. Create the |
| protected void | handleMissingValue(String
the name for the value name, MethodParameter the method parameter parameter)
Invoked when a named value is required, but |
| protected void | handleMissingValueAfterConversion(String
the name for the value name, MethodParameter the method parameter parameter, NativeWebRequest the current request request)
Invoked when a named value is present but becomes |
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. Whether the given method parameter is supported by this resolver. |
| AbstractCookieValueMethodArgumentResolver | back to summary |
|---|---|
| public AbstractCookieValueMethodArgumentResolver(ConfigurableBeanFactory beanFactory) Crate a new
| |
| createNamedValueInfo | back to summary |
|---|---|
| protected AbstractNamedValueMethodArgumentResolver. Implements abstract org. Create the
| |
| handleMissingValue | back to summary |
|---|---|
| protected void handleMissingValue(String name, MethodParameter parameter) throws ServletRequestBindingException Invoked when a named value is required, but
| |
| handleMissingValueAfterConversion | back to summary |
|---|---|
| protected void handleMissingValueAfterConversion(String name, MethodParameter parameter, NativeWebRequest request) throws Exception Invoked when a named value is present but becomes
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether the given method parameter is supported by this resolver.
| |
| Access | Constructor and Description |
|---|---|
| private |
| CookieValueNamedValueInfo | back to summary |
|---|---|
| private CookieValueNamedValueInfo(CookieValue annotation) | |