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.Builderbuilder()Returns a new builder.static OpenApiUicreate()Create a new instance with default configuration.static OpenApiUiCreate a new instance with custom configuration.name()Name of this implementation, as provided inConfiguredProvider.create(Config, String).io.helidon.integrations.openapi.ui.OpenApiUiConfigThe 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
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.ApiThe prototype as it was received when creating this runtime object instance.- Specified by:
prototypein interfaceRuntimeType.Api<io.helidon.integrations.openapi.ui.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
-