Class RequestParamMapMethodArgumentResolver
java.lang.Object
org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
org.springframework.web.reactive.result.method.annotation.RequestParamMapMethodArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver, SyncHandlerMethodArgumentResolver
public class RequestParamMapMethodArgumentResolver
extends HandlerMethodArgumentResolverSupport
implements SyncHandlerMethodArgumentResolver
Resolver for
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.
- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Sebastien Deleuze
- See Also:
-
Field Summary
Fields inherited from class HandlerMethodArgumentResolverSupport
logger -
Constructor Summary
ConstructorsConstructorDescriptionRequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionresolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) Resolve the value for the method parameter synchronously.booleansupportsParameter(MethodParameter param) Whether this resolver supports the given method parameter.Methods inherited from class HandlerMethodArgumentResolverSupport
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SyncHandlerMethodArgumentResolver
resolveArgument
-
Constructor Details
-
RequestParamMapMethodArgumentResolver
-
-
Method Details
-
supportsParameter
Description copied from interface:HandlerMethodArgumentResolverWhether this resolver supports the given method parameter.- Specified by:
supportsParameterin interfaceHandlerMethodArgumentResolver- Parameters:
param- the method parameter
-
resolveArgumentValue
public Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) Description copied from interface:SyncHandlerMethodArgumentResolverResolve the value for the method parameter synchronously.- Specified by:
resolveArgumentValuein interfaceSyncHandlerMethodArgumentResolver- Parameters:
methodParameter- the method parametercontext- the binding context to useexchange- the current exchange- Returns:
- the resolved value, if any
-