Class OpenApiUi
java.lang.Object
io.helidon.integrations.openapi.ui.OpenApiUi
- All Implemented Interfaces:
RuntimeType.Api<OpenApiUiConfig>,NamedService,OpenApiService
public final class OpenApiUi
extends Object
implements OpenApiService, RuntimeType.Api<OpenApiUiConfig>
An
OpenApiService that serves OpenApi UI.-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenApiUiConfig.Builderbuilder()Returns a new builder.static OpenApiUicreate()Create a new instance with default configuration.static OpenApiUicreate(Consumer<OpenApiUiConfig.Builder> builderConsumer) Create a new instance with custom configuration.name()Name of this implementation, as provided inConfiguredProvider.create(Config, String).The prototype as it was received when creating this runtime object instance.voidSet up the service.booleansupports(ServerRequestHeaders headers) Test if the service should handle a request.type()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().
-
Method Details
-
builder
Returns a new builder.- Returns:
- new builder
-
create
Create a new instance with default configuration.- Returns:
- new instance
-
create
Create a new instance with custom configuration.- Parameters:
builderConsumer- consumer of configuration builder- Returns:
- new instance
-
prototype
Description copied from interface:RuntimeType.ApiThe prototype as it was received when creating this runtime object instance.- Specified by:
prototypein interfaceRuntimeType.Api<OpenApiUiConfig>- Returns:
- prototype object used to create this instance
-
name
Description copied from interface:NamedServiceName of this implementation, as provided inConfiguredProvider.create(Config, String).- Specified by:
namein interfaceNamedService- Returns:
- name of this service
-
type
Description copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
typein interfaceNamedService- Returns:
- type of this service
-
supports
Description copied from interface:OpenApiServiceTest if the service should handle a request.- Specified by:
supportsin interfaceOpenApiService- Parameters:
headers- headers- Returns:
trueif the service should handle the request
-
setup
Description copied from interface:OpenApiServiceSet up the service.- Specified by:
setupin interfaceOpenApiService- Parameters:
rules- routingdocPath- document context pathcontent- content function
-