Annotation Type Header


  • @Retention(RUNTIME)
    @Target({PARAMETER,FIELD,METHOD,CONSTRUCTOR})
    public @interface Header
    Annotation for mapping an HTTP request header onto the following elements.

    a parameter of an annotated service method

    or, a field of a request bean

    or, a constructor with only one parameter of a request bean

    or, a method with only one parameter of a request bean

    or, a parameter of a request bean constructor

    or, a parameter of a request bean method

    (See: RequestConverter and RequestConverterFunction)

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      The name of the HTTP request header to bind to.
    • Element Detail

      • value

        String value
        The name of the HTTP request header to bind to.
        Default:
        "\n\t\t\n\t\t\n\u0000\u0001\u0002\n\t\t\t\t\n"