org.springframework.web.method.annotation

Class RequestHeaderMapMethodArgumentResolver

  • java.lang.Object
    • org.springframework.web.method.annotation.RequestHeaderMapMethodArgumentResolver
  • All Implemented Interfaces:
    HandlerMethodArgumentResolver


    public class RequestHeaderMapMethodArgumentResolver
    extends java.lang.Object
    implements HandlerMethodArgumentResolver
    Resolves Map method arguments annotated with @RequestHeader. For individual header values annotated with @RequestHeader see RequestHeaderMethodArgumentResolver instead.

    The created Map contains all request header name/value pairs. The method parameter type may be a MultiValueMap to receive all values for a header, not only the first one.

    Since:
    3.1
    Author:
    Arjen Poutsma, Rossen Stoyanchev