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