类 MatrixVariableMapMethodArgumentResolver
- java.lang.Object
- org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
- org.springframework.web.reactive.result.method.annotation.MatrixVariableMapMethodArgumentResolver
public class MatrixVariableMapMethodArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
Resolves arguments of typeMapannotated with@MatrixVariablewhere the annotation does not specify a name. In other words the purpose of this resolver is to provide access to multiple matrix variables, either all or associated with a specific path variable.When a name is specified, an argument of type Map is considered to be a single attribute with a Map value, and is resolved by
MatrixVariableMethodArgumentResolverinstead.- 从以下版本开始:
- 5.0.1
- 作者:
- Rossen Stoyanchev
- 另请参阅:
MatrixVariableMethodArgumentResolver
字段概要
从类继承的字段 org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
logger
构造器概要
构造器 构造器 说明 MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry registry)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectresolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)Resolve the value for the method parameter synchronously.booleansupportsParameter(MethodParameter parameter)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
构造器详细资料
MatrixVariableMapMethodArgumentResolver
public MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry registry)
方法详细资料
supportsParameter
public boolean supportsParameter(MethodParameter parameter)
从接口复制的说明:HandlerMethodArgumentResolverWhether this resolver supports the given method parameter.- 指定者:
supportsParameter在接口中HandlerMethodArgumentResolver- 参数:
parameter- the method parameter
resolveArgumentValue
@Nullable public Object resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)
从接口复制的说明:SyncHandlerMethodArgumentResolverResolve the value for the method parameter synchronously.- 指定者:
resolveArgumentValue在接口中SyncHandlerMethodArgumentResolver- 参数:
parameter- the method parameterbindingContext- the binding context to useexchange- the current exchange- 返回:
- the resolved value, if any