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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.helidon.microprofile.openapi.MPOpenAPISupportbuild()Build the instance from this builder.Assigns various OpenAPI settings from the specified MP OpenAPIConfigobject.Returns the supplier of index views.io.smallrye.openapi.api.OpenApiConfigReturns the smallrye OpenApiConfig instance describing the set-up that will govern the smallrye OpenAPI behavior.voidvalidate()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.BuilderReturns the smallrye OpenApiConfig instance describing the set-up that will govern the smallrye OpenAPI behavior.- Specified by:
openAPIConfigin classOpenAPISupport.Builder<MPOpenAPIBuilder>- Returns:
OpenApiConfigconveying how OpenAPI should behave
-
build
public io.helidon.microprofile.openapi.MPOpenAPISupport build()Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-
config
Assigns various OpenAPI settings from the specified MP OpenAPIConfigobject.- Parameters:
mpConfig- the OpenAPIConfigobject possibly containing settings- Returns:
- updated builder instance
-
indexViewsSupplier
Description copied from class:OpenAPISupport.BuilderReturns the supplier of index views.- Overrides:
indexViewsSupplierin classOpenAPISupport.Builder<MPOpenAPIBuilder>- Returns:
- index views supplier
-
validate
Description copied from class:OpenAPISupport.BuilderMakes sure the set-up for OpenAPI is consistent, internally and with the current Helidon runtime environment (SE or MP).- Overrides:
validatein classOpenAPISupport.Builder<MPOpenAPIBuilder>- Throws:
IllegalStateException- if validation fails
-