public class RequestParamMapMethodArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
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
logger
Constructor and Description |
---|
RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange)
Resolve the value for the method parameter synchronously.
|
boolean |
supportsParameter(MethodParameter param)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveArgument
public RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
public boolean supportsParameter(MethodParameter param)
HandlerMethodArgumentResolver
supportsParameter
in interface HandlerMethodArgumentResolver
param
- the method parameterpublic java.lang.Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
SyncHandlerMethodArgumentResolver
resolveArgumentValue
in interface SyncHandlerMethodArgumentResolver
methodParameter
- the method parametercontext
- the binding context to useexchange
- the current exchange