Annotation Interface RestServer.ComputedHeader

Enclosing class:
RestServer

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

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

    • name

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

      String function
      A named producer function. A named service implementing Http.HeaderFunction must exist in the registry that will be used to compute the header.
      Returns:
      name of a header function service to get header value from