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 protected
MPOpenAPIBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.helidon.microprofile.openapi.MPOpenAPISupport
build()
Build the instance from this builder.protected Supplier<List<? extends org.jboss.jandex.IndexView>>
indexViewsSupplier()
io.smallrye.openapi.api.OpenApiConfig
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, me, staticFile, ui, webContext
-
-
-
-
Method Detail
-
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
-
indexViewsSupplier
protected Supplier<List<? extends org.jboss.jandex.IndexView>> indexViewsSupplier()
- Overrides:
indexViewsSupplier
in classOpenAPISupport.Builder<MPOpenAPIBuilder>
-
validate
public void validate() throws IllegalStateException
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
-
-