Top Description Fields Constructors Methods
org.springframework.web.reactive.result.method.annotation

public Class RequestParamMapMethodArgumentResolver

extends HandlerMethodArgumentResolverSupport
implements SyncHandlerMethodArgumentResolver
Class Inheritance
All Implemented Interfaces
org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver, org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
Imports
java.util.Map, org.springframework.core.MethodParameter, .ReactiveAdapterRegistry, org.springframework.util.MultiValueMap, .StringUtils, org.springframework.web.bind.annotation.RequestParam, org.springframework.web.reactive.BindingContext, org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport, .SyncHandlerMethodArgumentResolver, org.springframework.web.server.ServerWebExchange

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.

Authors
Rossen Stoyanchev, Sebastien Deleuze
Since
5.0
See Also
RequestParamMethodArgumentResolver

Field Summary

Inherited from org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport:
logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
allParams(RequestParam requestParam, Class<?> type)

public Object
resolveArgumentValue(MethodParameter
the method parameter
methodParameter
,
BindingContext
the binding context to use
context
,
ServerWebExchange
the current exchange
exchange
)

Implements org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Resolve the value for the method parameter synchronously.

public boolean
supportsParameter(MethodParameter
the method parameter
param
)

Implements org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver.supportsParameter.

Whether this resolver supports the given method parameter.

Inherited from org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport:
checkAnnotatedParamNoReactiveWrappercheckParameterTypecheckParameterTypeNoReactiveWrappergetAdapterRegistry

Constructor Detail

RequestParamMapMethodArgumentResolverback to summary
public RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)

Method Detail

allParamsback to summary
private boolean allParams(RequestParam requestParam, Class<?> type)
resolveArgumentValueback to summary
public Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)

Implements org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Doc from org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Resolve the value for the method parameter synchronously.

Parameters
methodParameter:MethodParameter

the method parameter

context:BindingContext

the binding context to use

exchange:ServerWebExchange

the current exchange

Returns:Object

the resolved value, if any

Annotations
@Override
supportsParameterback to summary
public boolean supportsParameter(MethodParameter param)

Implements org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver.supportsParameter.

Doc from org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver.supportsParameter.

Whether this resolver supports the given method parameter.

Parameters
param:MethodParameter

the method parameter

Annotations
@Override