public class MatrixVariableMapMethodArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
Map annotated with @MatrixVariable
where 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 MatrixVariableMethodArgumentResolver instead.
MatrixVariableMethodArgumentResolver| Constructor and Description |
|---|
MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
resolveArgumentValue(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange)
Resolve the value for the method parameter synchronously.
|
boolean |
supportsParameter(MethodParameter parameter)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveArgumentpublic MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry registry)
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolversupportsParameter in interface HandlerMethodArgumentResolverparameter - the method parameter@Nullable public java.lang.Object resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)
SyncHandlerMethodArgumentResolverresolveArgumentValue in interface SyncHandlerMethodArgumentResolverparameter - the method parameterbindingContext - the binding context to useexchange - the current exchange