- All Superinterfaces:
Service
- All Known Implementing Classes:
OpenApiUiBase
Behavior for OpenAPI UI implementations.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceOpenApiUi.Builder<B extends OpenApiUi.Builder<B,T>, T extends OpenApiUi> Builder for anOpenApiUi. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault subcontext within theOpenAPISupportinstance's web context (which itself defaults to "/openapi". -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenApiUi.Builder<?,?> builder()Creates a builder for a newOpenApiUiinstance.booleanprepareTextResponseFromMainEndpoint(ServerRequest request, ServerResponse response) Gives the UI an opportunity to respond to a request arriving at theOpenAPISupportendpoint for which the best-acceptedMediaTypewastext/html.Indicates the media types the UI implementation itself supports.
-
Field Details
-
UI_WEB_SUBCONTEXT
Default subcontext within theOpenAPISupportinstance's web context (which itself defaults to "/openapi".- See Also:
-
-
Method Details
-
builder
Creates a builder for a newOpenApiUiinstance.- Returns:
- new builder
-
supportedMediaTypes
MediaType[] supportedMediaTypes()Indicates the media types the UI implementation itself supports.- Returns:
- the media types the
prepareTextResponseFromMainEndpoint(io.helidon.webserver.ServerRequest, io.helidon.webserver.ServerResponse)method responds to
-
prepareTextResponseFromMainEndpoint
Gives the UI an opportunity to respond to a request arriving at theOpenAPISupportendpoint for which the best-acceptedMediaTypewastext/html.An implementation should return
trueif it is responsible for a particular media type whether it handled the request itself or delegated the request to the next handler. For example, even if the implementation is disabled it should still returntruefor the HTML media type.- Parameters:
request- the request for HTML contentresponse- the response which could be prepared and sent- Returns:
- whether the UI did respond to the request
-