Class OpenApiFeatureConfig.BuilderBase.OpenApiFeatureConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<OpenApiFeature>, OpenApiFeatureConfig, Supplier<OpenApiFeature>
- Enclosing class:
OpenApiFeatureConfig.BuilderBase<BUILDER extends OpenApiFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenApiFeatureConfig>
-
Nested Class Summary
Nested classes/interfaces inherited from interface OpenApiFeatureConfig
OpenApiFeatureConfig.Builder, OpenApiFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forOpenApiFeature.static classOpenApiFeatureConfig.BuilderBase<BUILDER extends OpenApiFeatureConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenApiFeatureConfig>Fluent API builder base forOpenApiFeatureConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOpenApiFeatureConfigImpl(OpenApiFeatureConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.booleanNamed generated document metadata sources to use, in the order configured.Generated document source handling mode.Operation ids to use for generated Java methods.booleanWhether generated document sources resolve annotation string values as Helidon config expressions at runtime.get()inthashCode()booleanSets whether the feature should be enabled.manager()OpenAPI manager.name()Name of this instance.OpenAPI version implementation for rendered generated or merged documents.booleanWhether to allow anybody to access the endpoint.roles()Hints for role names the user is expected to be in.Runtime service registry supplied to the builder.services()OpenAPI services.sockets()List of sockets to register this feature on.Runtime source configuration supplied to the builder.Path of the static OpenAPI document file.toString()Web context path for the OpenAPI endpoint.doubleweight()Weight of the OpenAPI feature.
-
Constructor Details
-
OpenApiFeatureConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<OpenApiFeature>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<OpenApiFeature>
-
weight
public double weight()Description copied from interface:OpenApiFeatureConfigWeight of the OpenAPI feature. This is quite low, to be registered after routing. 90.0.- Specified by:
weightin interfaceOpenApiFeatureConfig- Returns:
- weight of the feature
-
isEnabled
public boolean isEnabled()Description copied from interface:OpenApiFeatureConfigSets whether the feature should be enabled.- Specified by:
isEnabledin interfaceOpenApiFeatureConfig- Returns:
trueif enabled,falseotherwise
-
webContext
Description copied from interface:OpenApiFeatureConfigWeb context path for the OpenAPI endpoint.- Specified by:
webContextin interfaceOpenApiFeatureConfig- Returns:
- webContext to use
-
staticFile
Description copied from interface:OpenApiFeatureConfigPath of the static OpenAPI document file. Default types are `json`, `yaml`, and `yml`.- Specified by:
staticFilein interfaceOpenApiFeatureConfig- Returns:
- location of the static OpenAPI document file
-
generatedMode
Description copied from interface:OpenApiFeatureConfigGenerated document source handling mode.- Specified by:
generatedModein interfaceOpenApiFeatureConfig- Returns:
- generated document source handling mode
-
generatedResolveConfigExpressions
public boolean generatedResolveConfigExpressions()Description copied from interface:OpenApiFeatureConfigWhether generated document sources resolve annotation string values as Helidon config expressions at runtime.When disabled, generated document sources use annotation string values literally. This is disabled by default because annotation text can be user-visible OpenAPI content.
- Specified by:
generatedResolveConfigExpressionsin interfaceOpenApiFeatureConfig- Returns:
- whether to resolve generated OpenAPI annotation string values as config expressions
-
generatedDocumentSources
Description copied from interface:OpenApiFeatureConfigNamed generated document metadata sources to use, in the order configured.Sources generated from
@OpenApi.Documentuse the annotated type's dotted canonical type name. CustomOpenApiDocumentSourceservices must be qualified with@Service.Namedto be selected by name. Unqualified sources always participate when they support the document context and cannot be filtered with this option.- Specified by:
generatedDocumentSourcesin interfaceOpenApiFeatureConfig- Returns:
- generated document metadata source names
-
generatedOperationIds
Description copied from interface:OpenApiFeatureConfigOperation ids to use for generated Java methods.Each key is a Java method signature consisting of the fully qualified class name,
#, the method name, and fully qualified parameter types separated by,. The value is the operation id to use for that method.- Specified by:
generatedOperationIdsin interfaceOpenApiFeatureConfig- Returns:
- generated operation ids keyed by fully qualified Java method signature
-
openApiVersion
Description copied from interface:OpenApiFeatureConfigOpenAPI version implementation for rendered generated or merged documents.If not configured, service discovery selects the highest-weighted available OpenAPI version provider. This means that adding OpenAPI 3.1 or 3.2 support modules can change generated output to the highest available OpenAPI document version. Configure this option to pin the OpenAPI document version for generated output.
Static documents served directly by
OpenApiGeneratedMode.STATIC_ONLYor by a static hit inOpenApiGeneratedMode.STATIC_FIRSTare not re-rendered through this provider.- Specified by:
openApiVersionin interfaceOpenApiFeatureConfig- Returns:
- version implementation for generated or merged OpenAPI documents
-
services
Description copied from interface:OpenApiFeatureConfigOpenAPI services.- Specified by:
servicesin interfaceOpenApiFeatureConfig- Returns:
- the OpenAPI services
-
manager
Description copied from interface:OpenApiFeatureConfigOpenAPI manager.- Specified by:
managerin interfaceOpenApiFeatureConfig- Returns:
- the OpenAPI manager
-
permitAll
public boolean permitAll()Description copied from interface:OpenApiFeatureConfigWhether to allow anybody to access the endpoint.- Specified by:
permitAllin interfaceOpenApiFeatureConfig- Returns:
- whether to permit access to metrics endpoint to anybody, defaults to
true - See Also:
-
roles
Description copied from interface:OpenApiFeatureConfigHints for role names the user is expected to be in.- Specified by:
rolesin interfaceOpenApiFeatureConfig- Returns:
- list of hints
-
name
Description copied from interface:OpenApiFeatureConfigName of this instance.- Specified by:
namein interfaceOpenApiFeatureConfig- Returns:
- instance name, used when discovered from configuration
-
sockets
Description copied from interface:OpenApiFeatureConfigList of sockets to register this feature on. If empty, it would get registered on all sockets.- Specified by:
socketsin interfaceOpenApiFeatureConfig- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
runtimeServiceRegistry
Description copied from interface:OpenApiFeatureConfigRuntime service registry supplied to the builder.- Specified by:
runtimeServiceRegistryin interfaceOpenApiFeatureConfig- Returns:
- runtime service registry
-
sourceRoot
Description copied from interface:OpenApiFeatureConfigRuntime source configuration supplied to the builder.- Specified by:
sourceRootin interfaceOpenApiFeatureConfig- Returns:
- runtime source configuration
-
toString
-
equals
-
hashCode
-