Annotation Type HttpHeader


  • @Retention(RUNTIME)
    @Target({METHOD,PARAMETER})
    public @interface HttpHeader
    When used on a parameter, maps the HTTP Request header to the parameter, converting the type if necessary. When used on method, maps the return value to the specified HTTP Response header. If the parameter type is Consumer, calling parameter.accept() sets the http header value instead of returning it.
    See Also:
    HttpReturnMapping
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value