Annotation Interface RestServer.ComputedHeader
- Enclosing class:
RestServer
@Target({TYPE,METHOD})
@Documented
@Repeatable(RestServer.ComputedHeaders.class)
public static @interface RestServer.ComputedHeader
Definition of computed outbound response header metadata.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionA named producer function.Name of the header, seeHeaderNamesconstants with_STRING.
-
Element Details
-
name
-
function
String functionA named producer function. A named service implementingHttp.HeaderFunctionmust exist in the registry that will be used to compute the header.- Returns:
- name of a header function service to get header value from
-