org.springframework.web.method.annotation

Class AbstractCookieValueMethodArgumentResolver

  • All Implemented Interfaces:
    HandlerMethodArgumentResolver
    Direct Known Subclasses:
    ServletCookieValueMethodArgumentResolver


    public abstract class AbstractCookieValueMethodArgumentResolver
    extends 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.

    Since:
    3.1
    Author:
    Arjen Poutsma, Rossen Stoyanchev