Annotation Type Header


@Target({PARAMETER,FIELD}) @Retention(RUNTIME) public @interface Header
A parameter that is a header value.

We can put this on a method parameter or a @Form bean property.

By default header names are Init caps snake case. For example:



  // Last-Modified
  @Header lastModified

 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the header.
  • Element Details

    • value

      String value
      The name of the header.
      Default:
      ""