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

AbstractCookieValueMethodArgumentResolver

abstract class AbstractCookieValueMethodArgumentResolver : AbstractNamedValueMethodArgumentResolver

A base abstract class to resolve method arguments annotated with @CookieValue. Subclasses extract the cookie value from the request.

An @CookieValue is a named value that is resolved from a cookie. It has a required flag and a default value to fall back on when the cookie does not exist.

A WebDataBinder may be invoked to apply type conversion to the resolved cookie value.

Author
Arjen Poutsma

Author
Rossen Stoyanchev

Since
3.1

Constructors

<init>

AbstractCookieValueMethodArgumentResolver(beanFactory: ConfigurableBeanFactory)

Functions

supportsParameter

open fun supportsParameter(parameter: MethodParameter): Boolean

Inherited Functions

resolveArgument

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

Inheritors

ServletCookieValueMethodArgumentResolver

open class ServletCookieValueMethodArgumentResolver : AbstractCookieValueMethodArgumentResolver

An org.springframework.web.method.annotation.AbstractCookieValueMethodArgumentResolver that resolves cookie values from an HttpServletRequest.