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<OpenAPISupport>,Supplier<OpenAPISupport>
public final class MPOpenAPIBuilder extends OpenAPISupport.Builder<MPOpenAPIBuilder>
Fluent builder for OpenAPISupport in Helidon MP.
-
-
Field Summary
-
Fields inherited from class io.helidon.openapi.OpenAPISupport.Builder
CONFIG_KEY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMPOpenAPIBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.helidon.microprofile.openapi.MPOpenAPISupportbuild()Build the instance from this builder.protected Supplier<List<? extends org.jboss.jandex.IndexView>>indexViewsSupplier()io.smallrye.openapi.api.OpenApiConfigopenAPIConfig()Returns 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, me, staticFile, ui, webContext
-
-
-
-
Method Detail
-
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
-
indexViewsSupplier
protected Supplier<List<? extends org.jboss.jandex.IndexView>> indexViewsSupplier()
- Overrides:
indexViewsSupplierin classOpenAPISupport.Builder<MPOpenAPIBuilder>
-
validate
public void validate() throws IllegalStateExceptionDescription 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
-
-