Map method arguments and handles Map return values.
A Map return value can be interpreted in more than one way depending
on the presence of annotations like @ModelAttribute or
@ResponseBody. As of 5.2 this resolver returns false if the
parameter is annotated.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleReturnValue(Object
the value returned from the handler method returnValue, MethodParameter the type of the return value. This type must have
previously been passed to returnType, ModelAndViewContainer supportsReturnType which must
have returned true.the ModelAndViewContainer for the current request mavContainer, NativeWebRequest the current request webRequest)Implements org. ModelAndViewContainer#setRequestHandled flag to true
to indicate the response has been handled directly.
|
| 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. |
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. |
| public boolean | supportsReturnType(MethodParameter
the method return type to check returnType)Implements org. |
| MapMethodProcessor | back to summary |
|---|---|
| public MapMethodProcessor() | |
| handleReturnValue | back to summary |
|---|---|
| public void handleReturnValue(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) throws Exception Implements org. Doc from org. Handle the given return value by adding attributes to the model and
setting a view or setting the
| |
| resolveArgument | back to summary |
|---|---|
| public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception Implements org. Doc from org. Resolves a method parameter into an argument value from a given request.
A
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether the given method parameter is supported by this resolver.
| |
| supportsReturnType | back to summary |
|---|---|
| public boolean supportsReturnType(MethodParameter returnType) Implements org. Doc from org. Whether the given method return type is supported by this handler.
| |