Class DeploymentUnitOpenAPIModelConfiguration
java.lang.Object
org.wildfly.extension.microprofile.openapi.deployment.DeploymentUnitOpenAPIModelConfiguration
- All Implemented Interfaces:
OpenAPIEndpointConfiguration,OpenAPIModelConfiguration
public class DeploymentUnitOpenAPIModelConfiguration
extends Object
implements OpenAPIModelConfiguration
Encapsulates the
OpenAPIModelConfiguration for a deployment.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.extension.microprofile.openapi.deployment.OpenAPIModelConfiguration
SERVICE_DESCRIPTOR -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the Undertow host to which this application is deployed.org.eclipse.microprofile.config.ConfigReturns the MicroProfile configuration for this deployment.getPath()Returns the URL path of the OpenAPI endpoint.Returns a function that resolves a relative deployment path to a URL.Returns the name of the Undertow server to which this application is deployed.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.
-
Method Details
-
isEnabled
public boolean isEnabled()Description copied from interface:OpenAPIModelConfigurationIndicates whether or not an OpenAPI endpoint is enabled for this deployment.- Specified by:
isEnabledin interfaceOpenAPIModelConfiguration- Returns:
- true, if an OpenAPI endpoint is enabled for this deployment, false otherwise.
-
getMicroProfileConfig
public org.eclipse.microprofile.config.Config getMicroProfileConfig()Description copied from interface:OpenAPIModelConfigurationReturns the MicroProfile configuration for this deployment.- Specified by:
getMicroProfileConfigin interfaceOpenAPIModelConfiguration- Returns:
- the MicroProfile configuration for this deployment.
-
getStaticFile
Description copied from interface:OpenAPIModelConfigurationReturns an optional static file, only present if the deployment defines one.- Specified by:
getStaticFilein interfaceOpenAPIModelConfiguration- Returns:
- an optional static file, only present if the deployment defines one.
-
getServerName
Description copied from interface:OpenAPIEndpointConfigurationReturns the name of the Undertow server to which this application is deployed.- Specified by:
getServerNamein interfaceOpenAPIEndpointConfiguration- Returns:
- the name of an Undertow server
-
getHostName
Description copied from interface:OpenAPIEndpointConfigurationReturns the name of the Undertow host to which this application is deployed.- Specified by:
getHostNamein interfaceOpenAPIEndpointConfiguration- Returns:
- the name of an Undertow server
-
getPath
Description copied from interface:OpenAPIEndpointConfigurationReturns the URL path of the OpenAPI endpoint.- Specified by:
getPathin interfaceOpenAPIEndpointConfiguration- Returns:
- an endpoint path
-
getResourceResolver
Description copied from interface:OpenAPIModelConfigurationReturns a function that resolves a relative deployment path to a URL.- Specified by:
getResourceResolverin interfaceOpenAPIModelConfiguration- Returns:
- a function that resolves a relative deployment path to a URL.
-
useRelativeServerURLs
public boolean useRelativeServerURLs()Description copied from interface:OpenAPIModelConfigurationIndicates whether or not the OpenAPI document should use relative URLs.- Specified by:
useRelativeServerURLsin interfaceOpenAPIModelConfiguration- Returns:
- true, if the OpenAPI document for this deployment should use relative URLs, false otherwise.
-