Annotation Interface RequestHeader


@Target(PARAMETER) @Retention(RUNTIME) @Documented public @interface RequestHeader
Annotation that binds a method variable to a request header value.
Since:
1.0
Version:
2024-03-18
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Default value if the header is not available.
    boolean
    Indicates if the header is required or not.
    The name of the request header to map to.
  • Element Details

    • value

      String value
      The name of the request header to map to.
      Default:
      ""
    • required

      boolean required
      Indicates if the header is required or not.
      Default:
      false
    • defaultValue

      String defaultValue
      Default value if the header is not available.
      Default:
      "-=|NONE|=-"