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 |
---|---|
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, getAdapterRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveArgument
public MatrixVariableMapMethodArgumentResolver(ReactiveAdapterRegistry registry)
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolver
supportsParameter
in interface HandlerMethodArgumentResolver
parameter
- the method parameter@Nullable public Object resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)
SyncHandlerMethodArgumentResolver
resolveArgumentValue
in interface SyncHandlerMethodArgumentResolver
parameter
- the method parameterbindingContext
- the binding context to useexchange
- the current exchange