Interface OpenAPIModelConfiguration
- All Superinterfaces:
OpenAPIEndpointConfiguration
- All Known Implementing Classes:
DeploymentUnitOpenAPIModelConfiguration
Encapsulates the configuration of an OpenAPI model.
- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.wildfly.service.descriptor.TernaryServiceDescriptor<io.smallrye.openapi.api.SmallRyeOpenAPI> -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.microprofile.config.ConfigReturns the MicroProfile configuration for this deployment.Returns a function that resolves a relative deployment path to a URL.Returns an optional static file, only present if the deployment defines one.booleanIndicates whether or not an OpenAPI endpoint is enabled for this deployment.booleanIndicates whether or not the OpenAPI document should use relative URLs.Methods inherited from interface org.wildfly.extension.microprofile.openapi.deployment.OpenAPIEndpointConfiguration
getHostName, getPath, getServerName
-
Field Details
-
SERVICE_DESCRIPTOR
static final org.wildfly.service.descriptor.TernaryServiceDescriptor<io.smallrye.openapi.api.SmallRyeOpenAPI> SERVICE_DESCRIPTOR
-
-
Method Details
-
isEnabled
boolean isEnabled()Indicates whether or not an OpenAPI endpoint is enabled for this deployment.- Returns:
- true, if an OpenAPI endpoint is enabled for this deployment, false otherwise.
-
getMicroProfileConfig
org.eclipse.microprofile.config.Config getMicroProfileConfig()Returns the MicroProfile configuration for this deployment.- Returns:
- the MicroProfile configuration for this deployment.
-
getStaticFile
Returns an optional static file, only present if the deployment defines one.- Returns:
- an optional static file, only present if the deployment defines one.
-
getResourceResolver
Returns a function that resolves a relative deployment path to a URL.- Returns:
- a function that resolves a relative deployment path to a URL.
-
useRelativeServerURLs
boolean useRelativeServerURLs()Indicates whether or not the OpenAPI document should use relative URLs.- Returns:
- true, if the OpenAPI document for this deployment should use relative URLs, false otherwise.
-