Package io.helidon.microprofile.openapi
Class MPOpenAPIBuilder
- java.lang.Object
-
- io.helidon.openapi.OpenAPISupport.Builder
-
- io.helidon.microprofile.openapi.MPOpenAPIBuilder
-
- All Implemented Interfaces:
Builder<OpenAPISupport>,Supplier<OpenAPISupport>
public final class MPOpenAPIBuilder extends OpenAPISupport.Builder
Fluent builder for OpenAPISupport in Helidon MP.
-
-
Field Summary
-
Fields inherited from class io.helidon.openapi.OpenAPISupport.Builder
CONFIG_KEY
-
-
Constructor Summary
Constructors Constructor Description MPOpenAPIBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.jandex.IndexViewindexView()Returns the JandexIndexViewcontaining annotated endpoint classes.MPOpenAPIBuilderindexView(org.jboss.jandex.IndexView indexView)Sets the IndexView instance to be passed to the smallrye OpenApi impl for annotation analysis.io.smallrye.openapi.api.OpenApiConfigopenAPIConfig()Returns the smallrye OpenApiConfig instance describing the set-up that will govern the smallrye OpenAPI behavior.MPOpenAPIBuilderopenAPIConfig(io.smallrye.openapi.api.OpenApiConfig config)Sets the OpenApiConfig instance to use in governing the behavior of the smallrye OpenApi implementation.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
build, config, helidonConfig, staticFile, 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- Returns:
OpenApiConfigconveying how OpenAPI should behave
-
indexView
public org.jboss.jandex.IndexView indexView()
Description copied from class:OpenAPISupport.BuilderReturns the JandexIndexViewcontaining annotated endpoint classes.- Specified by:
indexViewin classOpenAPISupport.Builder- Returns:
IndexViewcontaining endpoint classes
-
openAPIConfig
public MPOpenAPIBuilder openAPIConfig(io.smallrye.openapi.api.OpenApiConfig config)
Sets the OpenApiConfig instance to use in governing the behavior of the smallrye OpenApi implementation.- Parameters:
config-OpenApiConfiginstance to control OpenAPI behavior- Returns:
- updated builder instance
-
indexView
public MPOpenAPIBuilder indexView(org.jboss.jandex.IndexView indexView)
Sets the IndexView instance to be passed to the smallrye OpenApi impl for annotation analysis.- Parameters:
indexView-IndexViewinstance containing endpoint classes- Returns:
- updated builder instance
-
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- Throws:
IllegalStateException- if validation fails
-
-