Annotation Interface RestServer.Header

Enclosing class:
RestServer

@Target({TYPE,METHOD}) @Repeatable(Headers.class) @Documented public static @interface RestServer.Header
Definition of an outbound header (sent with every response).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the header, see HeaderNames constants with _STRING.
    Value of the header.
  • Element Details

    • name

      String name
      Name of the header, see HeaderNames constants with _STRING.
      Returns:
      header name
    • value

      String value
      Value of the header.
      Returns:
      header value