Declarative response metadata, such as RestServer.Status, RestServer.Header, RestServer.ComputedHeader, and
Http.Produces, is configured on ServerResponse by generated routing code.
For endpoint methods that accept ServerResponse, generated code configures this metadata before invoking the
method, so it is available to ServerResponse.outputStream() and other response-handling APIs.
For endpoint methods that do not accept ServerResponse, generated code configures this metadata after the
method returns and before the generated response is sent.
Declarative response metadata has the same lifecycle as metadata configured imperatively on ServerResponse:
it remains on the current response unless later route or error handling changes it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefinition of computed outbound response header metadata.static @interfaceContainer forRestServer.ComputedHeaderrepeated annotation.static @interfaceDefinition of a server endpoint.static @interfaceDefinition of outbound response header metadata.static @interfaceContainer forRestServer.Headerrepeated annotation.static @interfaceListener socket assigned to this endpoint.static @interfaceHTTP status to configure for a declarative server response. -
Method Summary