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.IndexView
indexView()
Returns the JandexIndexView
containing annotated endpoint classes.MPOpenAPIBuilder
indexView(org.jboss.jandex.IndexView indexView)
Sets the IndexView instance to be passed to the smallrye OpenApi impl for annotation analysis.io.smallrye.openapi.api.OpenApiConfig
openAPIConfig()
Returns the smallrye OpenApiConfig instance describing the set-up that will govern the smallrye OpenAPI behavior.MPOpenAPIBuilder
openAPIConfig(io.smallrye.openapi.api.OpenApiConfig config)
Sets the OpenApiConfig instance to use in governing the behavior of the smallrye OpenApi implementation.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
build, config, helidonConfig, staticFile, 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
- Returns:
OpenApiConfig
conveying how OpenAPI should behave
-
indexView
public org.jboss.jandex.IndexView indexView()
Description copied from class:OpenAPISupport.Builder
Returns the JandexIndexView
containing annotated endpoint classes.- Specified by:
indexView
in classOpenAPISupport.Builder
- Returns:
IndexView
containing 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
-OpenApiConfig
instance 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
-IndexView
instance containing endpoint classes- Returns:
- updated builder instance
-
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
- Throws:
IllegalStateException
- if validation fails
-
-