Class RequestHeaderArgumentResolver

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

public class RequestHeaderArgumentResolver extends AbstractNamedValueArgumentResolver
HttpServiceArgumentResolver for @RequestHeader annotated arguments.

The argument may be:

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

Individual header 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:
Olga Maciaszek-Sharma, Rossen Stoyanchev