Map method arguments annotated with
@PathVariable where the annotation does not specify a
path variable name. The resulting Map argument is a copy of all URI
template name-value pairs.
PathVariableMethodArgumentResolver
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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 webRequest, WebDataBinderFactory a factory for creating binderFactory)WebDataBinder instancesImplements org. Return a Map with all URI template variables or an empty map. |
| public boolean | supportsParameter(MethodParameter
the method parameter to check parameter)Implements org. Whether the given method parameter is supported by this resolver. |
| PathVariableMapMethodArgumentResolver | back to summary |
|---|---|
| public PathVariableMapMethodArgumentResolver() | |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether the given method parameter is supported by this resolver.
| |