Annotation Type RestHeader


  • @Retention(RUNTIME)
    @Target({FIELD,PARAMETER})
    public @interface RestHeader
    Equivalent of HeaderParam but with optional name.

    When the name is not specified, then the parameter name is converted to kebab case while the first letter of every part of the kebab is made uppercase.

    For example @RestHeader String iAmTheParam results in the value of the HTTP header I-Am-The-Param being used.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value  
    • Element Detail

      • value

        String value
        Default:
        ""