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| Constructor and Description |
|---|
RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
allParams(RequestParam requestParam,
java.lang.Class<?> type) |
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, getAdapterRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveArgumentpublic RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
public boolean supportsParameter(MethodParameter param)
HandlerMethodArgumentResolversupportsParameter in interface HandlerMethodArgumentResolverparam - the method parameterprivate boolean allParams(RequestParam requestParam, java.lang.Class<?> type)
public java.lang.Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
SyncHandlerMethodArgumentResolverresolveArgumentValue in interface SyncHandlerMethodArgumentResolvermethodParameter - the method parametercontext - the binding context to useexchange - the current exchange