Class CookieValueArgumentResolver

java.lang.Object
org.springframework.web.service.invoker.AbstractNamedValueArgumentResolver
org.springframework.web.service.invoker.CookieValueArgumentResolver
All Implemented Interfaces:
HttpServiceArgumentResolver

public class CookieValueArgumentResolver extends AbstractNamedValueArgumentResolver
HttpServiceArgumentResolver for @CookieValue annotated arguments.

The argument may be:

  • Map<String, ?> or MultiValueMap<String, ?> with multiple cookies and value(s).
  • Collection or an array of cookie values.
  • An individual cookie value.

Individual cookie values may be Strings or Objects to be converted to String values through the configured ConversionService.

If the value is required but null, IllegalArgumentException is raised. The value is not required if:

Since:
6.0
Author:
Rossen Stoyanchev