Package io.helidon.microprofile.openapi
Class MPOpenAPIBuilder
java.lang.Object
io.helidon.openapi.OpenAPISupport.Builder<MPOpenAPIBuilder>
io.helidon.microprofile.openapi.MPOpenAPIBuilder
- All Implemented Interfaces:
Builder<MPOpenAPIBuilder,
,OpenAPISupport> Supplier<OpenAPISupport>
Fluent builder for OpenAPISupport in Helidon MP.
-
Field Summary
Fields inherited from class io.helidon.openapi.OpenAPISupport.Builder
CONFIG_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.helidon.microprofile.openapi.MPOpenAPISupport
build()
Build the instance from this builder.Assigns various OpenAPI settings from the specified MP OpenAPIConfig
object.Returns the supplier of index views.io.smallrye.openapi.api.OpenApiConfig
Returns the smallrye OpenApiConfig instance describing the set-up that will govern the smallrye OpenAPI behavior.void
validate()
Makes sure the set-up for OpenAPI is consistent, internally and with the current Helidon runtime environment (SE or MP).Methods inherited from class io.helidon.openapi.OpenAPISupport.Builder
config, crossOriginConfig, staticFile, ui, webContext
-
Constructor Details
-
MPOpenAPIBuilder
public MPOpenAPIBuilder()
-
-
Method Details
-
openAPIConfig
public io.smallrye.openapi.api.OpenApiConfig openAPIConfig()Description copied from class:OpenAPISupport.Builder
Returns the smallrye OpenApiConfig instance describing the set-up that will govern the smallrye OpenAPI behavior.- Specified by:
openAPIConfig
in classOpenAPISupport.Builder<MPOpenAPIBuilder>
- Returns:
OpenApiConfig
conveying how OpenAPI should behave
-
build
public io.helidon.microprofile.openapi.MPOpenAPISupport build()Description copied from interface:Builder
Build the instance from this builder.- Returns:
- instance of the built type
-
config
Assigns various OpenAPI settings from the specified MP OpenAPIConfig
object.- Parameters:
mpConfig
- the OpenAPIConfig
object possibly containing settings- Returns:
- updated builder instance
-
indexViewsSupplier
Description copied from class:OpenAPISupport.Builder
Returns the supplier of index views.- Overrides:
indexViewsSupplier
in classOpenAPISupport.Builder<MPOpenAPIBuilder>
- Returns:
- index views supplier
-
validate
Description copied from class:OpenAPISupport.Builder
Makes sure the set-up for OpenAPI is consistent, internally and with the current Helidon runtime environment (SE or MP).- Overrides:
validate
in classOpenAPISupport.Builder<MPOpenAPIBuilder>
- Throws:
IllegalStateException
- if validation fails
-