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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private MultiValueMap | mapMatrixVariables(MethodParameter parameter, Map<String, MultiValueMap<String, String>> matrixVariables)
|
| public Object | resolveArgument(MethodParameter
the method parameter to resolve. This parameter must
have previously been passed to parameter, ModelAndViewContainer supportsParameter which must
have returned true.the ModelAndViewContainer for the current request mavContainer, NativeWebRequest the current request request, WebDataBinderFactory a factory for creating binderFactory)WebDataBinder instancesImplements org. Resolves a method parameter into an argument value from a given request. |
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. Whether the given method parameter is supported by this resolver. |
| MatrixVariableMapMethodArgumentResolver | back to summary |
|---|---|
| public MatrixVariableMapMethodArgumentResolver() | |
| isSingleValueMap | back to summary |
|---|---|
| private boolean isSingleValueMap(MethodParameter parameter) | |
| mapMatrixVariables | back to summary |
|---|---|
| private MultiValueMap | |
| resolveArgument | back to summary |
|---|---|
| public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) throws Exception Implements org. Doc from org. Resolves a method parameter into an argument value from a given request.
A
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether the given method parameter is supported by this resolver.
| |