Map method arguments annotated with an @RequestParam
where the annotation does not specify a request parameter name.
The created Map contains all request parameter name/value pairs,
or all multipart files for a given parameter name if specifically declared
with MultipartFile as the value type. If the method parameter type is
MultiValueMap instead, the created map contains all request parameters
and all their values for cases where request parameters have multiple values
(or multiple multipart files of the same name).
RequestParamMethodArgumentResolver, HttpServletRequest#getParameterMap(), MultipartRequest#getMultiFileMap(), MultipartRequest#getFileMap()
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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. Resolves a method parameter into an argument value from a given request. |
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. Whether the given method parameter is supported by this resolver. |
| RequestParamMapMethodArgumentResolver | back to summary |
|---|---|
| public RequestParamMapMethodArgumentResolver() | |
| 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.
| |