spring-framework / org.springframework.web.method.annotation / MapMethodProcessor

MapMethodProcessor

open class MapMethodProcessor : HandlerMethodArgumentResolver, HandlerMethodReturnValueHandler

Resolves Map method arguments and handles Map return values.

A Map return value can be interpreted in more than one ways depending on the presence of annotations like @ModelAttribute or @ResponseBody. Therefore this handler should be configured after the handlers that support these annotations.

Author
Rossen Stoyanchev

Since
3.1

Constructors

<init>

MapMethodProcessor()

Resolves Map method arguments and handles Map return values.

A Map return value can be interpreted in more than one ways depending on the presence of annotations like @ModelAttribute or @ResponseBody. Therefore this handler should be configured after the handlers that support these annotations.

Functions

handleReturnValue

open fun handleReturnValue(returnValue: Any, returnType: MethodParameter, mavContainer: ModelAndViewContainer, webRequest: NativeWebRequest): Unit

resolveArgument

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

supportsParameter

open fun supportsParameter(parameter: MethodParameter): Boolean

supportsReturnType

open fun supportsReturnType(returnType: MethodParameter): Boolean