public class RequestParamMapMethodArgumentResolver extends Object implements HandlerMethodArgumentResolver
Map method arguments annotated with
@RequestParam where the annotation does not specify a
request parameter name. See RequestParamMethodArgumentResolver for
resolving Map method arguments with a request parameter name.
The created Map contains all request parameter name-value pairs.
If the method parameter type is MultiValueMap instead, the created
map contains all request parameters and all there values for cases where
request parameters have multiple values.
RequestParamMethodArgumentResolver| Constructor and Description |
|---|
RequestParamMapMethodArgumentResolver() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Object> |
resolveArgument(MethodParameter parameter,
ModelMap model,
ServerWebExchange exchange)
The returned
Mono may produce one or zero values if the argument
does not resolve to any value, which will result in null passed
as the argument value. |
boolean |
supportsParameter(MethodParameter parameter) |
public RequestParamMapMethodArgumentResolver()
public boolean supportsParameter(MethodParameter parameter)
supportsParameter in interface HandlerMethodArgumentResolverpublic reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, ModelMap model, ServerWebExchange exchange)
HandlerMethodArgumentResolverMono may produce one or zero values if the argument
does not resolve to any value, which will result in null passed
as the argument value.resolveArgument in interface HandlerMethodArgumentResolverparameter - the method parametermodel - the implicit model for request handlingexchange - the current exchange