WebArgumentResolver to the
HandlerMethodArgumentResolver contract.Note
This class is provided for backwards compatibility.
However it is recommended to re-write a WebArgumentResolver as
HandlerMethodArgumentResolver. Since supportsParameter
can only be implemented by actually resolving the value and then checking
the result is not WebArgumentResolver#UNRESOLVED any exceptions
raised must be absorbed and ignored since it's not clear whether the adapter
doesn't support the parameter or whether it failed for an internal reason.
The HandlerMethodArgumentResolver contract also provides access to
model attributes and to WebDataBinderFactory (for type conversion).
| Modifier and Type | Field and Description |
|---|---|
| private final WebArgumentResolver | |
| private final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract NativeWebRequest | |
| public Object | resolveArgument(MethodParameter
the method parameter to resolve. This parameter must
have previously been passed to parameter, ModelAndViewContainer supportsParameter which must
have returned true.the ModelAndViewContainer for the current request mavContainer, NativeWebRequest the current request webRequest, WebDataBinderFactory a factory for creating binderFactory)WebDataBinder instancesImplements org. WebArgumentResolver instance.
|
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. WebArgumentResolver#UNRESOLVED absorbing _any_ exceptions.
|
| adaptee | back to summary |
|---|---|
| private final WebArgumentResolver adaptee | |
| logger | back to summary |
|---|---|
| private final Log logger | |
| AbstractWebArgumentResolverAdapter | back to summary |
|---|---|
| public AbstractWebArgumentResolverAdapter(WebArgumentResolver adaptee) Create a new instance. | |
| getWebRequest | back to summary |
|---|---|
| protected abstract NativeWebRequest getWebRequest() Required for access to NativeWebRequest in | |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Actually resolve the value and check the resolved value is not
| |