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(org.springframework.core.MethodParameter parameter,
org.springframework.ui.ModelMap model,
org.springframework.web.server.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(org.springframework.core.MethodParameter parameter) |
public RequestParamMapMethodArgumentResolver()
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public reactor.core.publisher.Mono<Object> resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.ui.ModelMap model, org.springframework.web.server.ServerWebExchange exchange)
HandlerMethodArgumentResolver
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.resolveArgument
in interface HandlerMethodArgumentResolver
parameter
- the method parametermodel
- the implicit model for request handlingexchange
- the current exchange