java.lang.Object
io.helidon.openapi.OpenApiFeature
- All Implemented Interfaces:
- RuntimeType.Api<OpenApiFeatureConfig>,- NamedService,- Weighted,- ServerFeature,- Comparable<Weighted>
public final class OpenApiFeature
extends Object
implements Weighted, ServerFeature, RuntimeType.Api<OpenApiFeatureConfig>
Helidon Support for OpenAPI.
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.helidon.webserver.spi.ServerFeatureServerFeature.RoutingBuilders, ServerFeature.ServerFeatureContext, ServerFeature.SocketBuilders
- 
Field SummaryFields inherited from interface io.helidon.common.WeightedDEFAULT_WEIGHT
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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(Consumer<OpenApiFeatureConfig.Builder> builderConsumer) Create a new instance with custom configuration.voidInitialize the model.name()Name of this implementation, as provided inConfiguredProvider.create(Config, String).The 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().doubleweight()Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).
- 
Method Details- 
builderReturns a new builder.- Returns:
- new builder`
 
- 
createCreate a new instance with default configuration.- Returns:
- new instance
 
- 
createCreate a new instance from typed configuration.- Parameters:
- config- typed configuration
- Returns:
- new instance
 
- 
createCreate a new instance with custom configuration.- Parameters:
- builderConsumer- consumer of configuration builder
- Returns:
- new instance
 
- 
prototypeDescription copied from interface:RuntimeType.ApiThe prototype as it was received when creating this runtime object instance.- Specified by:
- prototypein interface- RuntimeType.Api<OpenApiFeatureConfig>
- Returns:
- prototype object used to create this instance
 
- 
setupDescription 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 interface- ServerFeature
- Parameters:
- featureContext- to access builders of webserver, listeners, and routing
 
- 
nameDescription copied from interface:NamedServiceName of this implementation, as provided inConfiguredProvider.create(Config, String).- Specified by:
- namein interface- NamedService
- Returns:
- name of this service
 
- 
typeDescription 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 interface- NamedService
- Returns:
- type of this service
 
- 
weightpublic double weight()Description copied from interface:WeightedWeight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use theWeightannotation rather than implementing this interface as long as it is supported by the library using thisWeighted.
- 
initializepublic void initialize()Initialize the model.
 
-