- 
- All Superinterfaces:
- Service
 - All Known Implementing Classes:
- OpenApiUiBase
 
 public interface OpenApiUi extends Service Behavior for OpenAPI UI implementations.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceOpenApiUi.Builder<B extends OpenApiUi.Builder<B,T>,T extends OpenApiUi>Builder for anOpenApiUi.
 - 
Field SummaryFields Modifier and Type Field Description static StringUI_WEB_SUBCONTEXTDefault subcontext within theOpenAPISupportinstance's web context (which itself defaults to "/openapi".
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static 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.MediaType[]supportedMediaTypes()Indicates the media types the UI implementation itself supports.
 
- 
- 
- 
Field Detail- 
UI_WEB_SUBCONTEXTstatic final String UI_WEB_SUBCONTEXT Default subcontext within theOpenAPISupportinstance's web context (which itself defaults to "/openapi".- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
builderstatic OpenApiUi.Builder<?,?> builder() Creates a builder for a newOpenApiUiinstance.- Returns:
- new builder
 
 - 
supportedMediaTypesMediaType[] 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
 
 - 
prepareTextResponseFromMainEndpointboolean prepareTextResponseFromMainEndpoint(ServerRequest request, ServerResponse response) 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 content
- response- the response which could be prepared and sent
- Returns:
- whether the UI did respond to the request
 
 
- 
 
-