类 RequestParamMapMethodArgumentResolver
- java.lang.Object
- org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
- org.springframework.web.reactive.result.method.annotation.RequestParamMapMethodArgumentResolver
public class RequestParamMapMethodArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
Resolver forMapmethod arguments annotated with@RequestParamwhere the annotation does not specify a request parameter name. SeeRequestParamMethodArgumentResolverfor resolvingMapmethod arguments with a request parameter name.The created
Mapcontains all request parameter name-value pairs. If the method parameter type isMultiValueMapinstead, the created map contains all request parameters and all there values for cases where request parameters have multiple values.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev, Sebastien Deleuze
- 另请参阅:
RequestParamMethodArgumentResolver
字段概要
从类继承的字段 org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
logger
构造器概要
构造器 构造器 说明 RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectresolveArgumentValue(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.从类继承的方法 org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver
resolveArgument
构造器详细资料
RequestParamMapMethodArgumentResolver
public RequestParamMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
方法详细资料
supportsParameter
public boolean supportsParameter(MethodParameter param)
从接口复制的说明:HandlerMethodArgumentResolverWhether this resolver supports the given method parameter.- 指定者:
supportsParameter在接口中HandlerMethodArgumentResolver- 参数:
param- the method parameter
resolveArgumentValue
public Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
从接口复制的说明:SyncHandlerMethodArgumentResolverResolve the value for the method parameter synchronously.- 指定者:
resolveArgumentValue在接口中SyncHandlerMethodArgumentResolver- 参数:
methodParameter- the method parametercontext- the binding context to useexchange- the current exchange- 返回:
- the resolved value, if any