java.lang.Object
io.helidon.openapi.OpenApiFeature
- All Implemented Interfaces:
 RuntimeType.Api<io.helidon.openapi.OpenApiFeatureConfig>,NamedService,ServerFeature
public final class OpenApiFeature
extends Object
implements ServerFeature, RuntimeType.Api<io.helidon.openapi.OpenApiFeatureConfig>
Helidon Support for OpenAPI.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.spi.ServerFeature
ServerFeature.RoutingBuilders, ServerFeature.ServerFeatureContext, ServerFeature.SocketBuilders - 
Method Summary
Modifier and TypeMethodDescriptionstatic io.helidon.openapi.OpenApiFeatureConfig.Builderbuilder()Returns a new builder.static OpenApiFeaturecreate()Create a new instance with default configuration.static OpenApiFeatureCreate a new instance from typed configuration.static OpenApiFeatureCreate a new instance with custom configuration.voidInitialize the model.name()Name of this implementation, as provided inConfiguredProvider.create(Config, String).io.helidon.openapi.OpenApiFeatureConfigThe prototype as it was received when creating this runtime object instance.voidsetup(ServerFeature.ServerFeatureContext featureContext) Set up a server feature.type()Type of this implementation, to distinguish instances of same type, with differentNamedService.name(). 
- 
Method Details
- 
builder
public static io.helidon.openapi.OpenApiFeatureConfig.Builder builder()Returns a new builder.- Returns:
 - new builder`
 
 - 
create
Create a new instance with default configuration.- Returns:
 - new instance
 
 - 
create
Create a new instance from typed configuration.- Parameters:
 config- typed configuration- Returns:
 - new instance
 
 - 
create
public static OpenApiFeature create(Consumer<io.helidon.openapi.OpenApiFeatureConfig.Builder> builderConsumer) Create a new instance with custom configuration.- Parameters:
 builderConsumer- consumer of configuration builder- Returns:
 - new instance
 
 - 
prototype
public io.helidon.openapi.OpenApiFeatureConfig 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.openapi.OpenApiFeatureConfig>- Returns:
 - prototype object used to create this instance
 
 - 
setup
Description copied from interface:ServerFeatureSet up a server feature. Server features can modify server configuration, right before the server is created. To access listener configuration, or routing, a list of all listeners is provided.- Specified by:
 setupin interfaceServerFeature- Parameters:
 featureContext- to access builders of webserver, listeners, and routing
 - 
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
 
 - 
initialize
public void initialize()Initialize the model. 
 -