Class MatrixVariableMapMethodArgumentResolver
- java.lang.Object
- org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
- org.springframework.web.reactive.result.method.annotation.MatrixVariableMapMethodArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver,SyncHandlerMethodArgumentResolver
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.- Since:
- 5.0.1
- Author:
- Rossen Stoyanchev
- See Also:
MatrixVariableMethodArgumentResolver
Field Summary
Fields inherited from class org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
logger
Constructor Summary
Constructors Constructor Description MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry registry)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Methods inherited from class org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver
resolveArgument
Constructor Detail
MatrixVariableMapMethodArgumentResolver
public MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry registry)
Method Detail
supportsParameter
public boolean supportsParameter(MethodParameter parameter)
Description copied from interface:HandlerMethodArgumentResolverWhether this resolver supports the given method parameter.- Specified by:
supportsParameterin interfaceHandlerMethodArgumentResolver- Parameters:
parameter- the method parameter
resolveArgumentValue
@Nullable public Object resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)
Description copied from interface:SyncHandlerMethodArgumentResolverResolve the value for the method parameter synchronously.- Specified by:
resolveArgumentValuein interfaceSyncHandlerMethodArgumentResolver- Parameters:
parameter- the method parameterbindingContext- the binding context to useexchange- the current exchange- Returns:
- the resolved value, if any