spring-framework / org.springframework.web.servlet.mvc.method.annotation / PathVariableMapMethodArgumentResolver

PathVariableMapMethodArgumentResolver

open class PathVariableMapMethodArgumentResolver : HandlerMethodArgumentResolver

Resolves Map method arguments annotated with an @PathVariable where the annotation does not specify a path variable name. The created Map contains all URI template name/value pairs.

Author
Rossen Stoyanchev

Since
3.2

See Also
PathVariableMethodArgumentResolver

Constructors

<init>

PathVariableMapMethodArgumentResolver()

Resolves Map method arguments annotated with an @PathVariable where the annotation does not specify a path variable name. The created Map contains all URI template name/value pairs.

Functions

resolveArgument

open fun resolveArgument(parameter: MethodParameter, mavContainer: ModelAndViewContainer, webRequest: NativeWebRequest, binderFactory: WebDataBinderFactory): Any

Return a Map with all URI template variables or an empty map.

supportsParameter

open fun supportsParameter(parameter: MethodParameter): Boolean