Class OpenApiFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
org.apache.cxf.feature.AbstractFeature
org.apache.cxf.feature.DelegatingFeature<OpenApiFeature.Portable>
org.apache.cxf.jaxrs.microprofile.openapi.OpenApiFeature
- All Implemented Interfaces:
AbstractPortableFeature,Feature,SwaggerProperties,SwaggerUiSupport
public class OpenApiFeature
extends DelegatingFeature<OpenApiFeature.Portable>
implements SwaggerUiSupport, SwaggerProperties
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupport
SwaggerUiSupport.Registration -
Field Summary
Fields inherited from class org.apache.cxf.feature.DelegatingFeature
delegateFields inherited from class jakarta.xml.ws.WebServiceFeature
enabledFields inherited from interface org.apache.cxf.jaxrs.common.openapi.SwaggerProperties
CONTACT_PROPERTY, DEFAULT_LICENSE_URL, DEFAULT_LICENSE_VALUE, DEFAULT_PROPS_LOCATION, DESCRIPTION_PROPERTY, FILTER_CLASS_PROPERTY, LICENSE_PROPERTY, LICENSE_URL_PROPERTY, PRETTY_PRINT_PROPERTY, RESOURCE_PACKAGE_PROPERTY, TERMS_URL_PROPERTY, TITLE_PROPERTY, VERSION_PROPERTYFields inherited from interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupport
SUPPORT_UI_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDetects the Swagger UI in root with respect to properties and configuration provided.Returns Swagger UI configuration parameters.Returns media types supported by Swagger UIgetTitle()protected PropertiesgetUserProperties(Map<String, Object> userDefinedOptions) booleanbooleanbooleanbooleanisScan()booleanChecks if Swagger UI support is available or not.protected voidregisterOpenApiResources(JAXRSServiceFactoryBean sfb, org.eclipse.microprofile.openapi.models.OpenAPI openApiDefinition) protected voidregisterSwaggerUiResources(JAXRSServiceFactoryBean sfb, Properties properties, ServerProviderFactory factory, Bus bus) voidsetConfigLocation(String configLocation) voidsetContactEmail(String contactEmail) voidsetContactName(String contactName) voidsetContactUrl(String contactUrl) voidsetDescription(String description) voidsetFilterClass(String filterClass) voidsetIgnoredRoutes(Collection<String> ignoredRoutes) voidsetLicense(String license) voidsetLicenseUrl(String licenseUrl) voidsetPrettyPrint(boolean prettyPrint) voidsetPropertiesLocation(String propertiesLocation) voidsetReadAllResources(boolean readAllResources) voidsetResourceClasses(Set<String> resourceClasses) voidsetResourcePackages(Set<String> resourcePackages) voidsetRunAsFilter(boolean runAsFilter) voidsetScan(boolean scan) voidsetScanKnownConfigLocations(boolean scanKnownConfigLocations) voidsetSupportSwaggerUi(Boolean supportSwaggerUi) voidsetSwaggerUiConfig(SwaggerUiConfig swaggerUiConfig) voidsetSwaggerUiMavenGroupAndArtifact(String swaggerUiMavenGroupAndArtifact) voidsetSwaggerUiMediaTypes(Map<String, String> swaggerUiMediaTypes) voidsetSwaggerUiVersion(String swaggerUiVersion) voidsetTermsOfServiceUrl(String termsOfServiceUrl) voidvoidsetVersion(String version) Methods inherited from class org.apache.cxf.feature.DelegatingFeature
getDelegate, initialize, initialize, initialize, initialize, initializeProvider, setDelegateMethods inherited from class org.apache.cxf.feature.AbstractFeature
doInitializeProvider, getActive, getID, isEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.jaxrs.common.openapi.SwaggerProperties
getSwaggerPropertiesMethods inherited from interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupport
checkSupportSwaggerUiProp, getSwaggerUi
-
Constructor Details
-
OpenApiFeature
public OpenApiFeature()
-
-
Method Details
-
isScan
public boolean isScan() -
setScan
public void setScan(boolean scan) -
getFilterClass
-
setFilterClass
-
getResourcePackages
-
setResourcePackages
-
getVersion
-
setVersion
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getContactName
-
setContactName
-
getContactEmail
-
setContactEmail
-
getContactUrl
-
setContactUrl
-
getLicense
-
setLicense
-
getLicenseUrl
-
setLicenseUrl
-
getTermsOfServiceUrl
-
setTermsOfServiceUrl
-
isReadAllResources
public boolean isReadAllResources() -
setReadAllResources
public void setReadAllResources(boolean readAllResources) -
getResourceClasses
-
setResourceClasses
-
getIgnoredRoutes
-
setIgnoredRoutes
-
isPrettyPrint
public boolean isPrettyPrint() -
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint) -
isRunAsFilter
public boolean isRunAsFilter() -
isSupportSwaggerUi
Description copied from interface:SwaggerUiSupportChecks if Swagger UI support is available or not.- Specified by:
isSupportSwaggerUiin interfaceSwaggerUiSupport- Returns:
- "true" if Swagger UI support is available, "false" otherwise
-
setSupportSwaggerUi
-
getSwaggerUiVersion
-
setSwaggerUiVersion
-
getSwaggerUiMavenGroupAndArtifact
-
setSwaggerUiMavenGroupAndArtifact
-
getSwaggerUiMediaTypes
Description copied from interface:SwaggerUiSupportReturns media types supported by Swagger UI- Specified by:
getSwaggerUiMediaTypesin interfaceSwaggerUiSupport- Returns:
- media types supported by Swagger UI
-
setSwaggerUiMediaTypes
-
getConfigLocation
-
setConfigLocation
-
getPropertiesLocation
-
setPropertiesLocation
-
setRunAsFilter
public void setRunAsFilter(boolean runAsFilter) -
setScanKnownConfigLocations
public void setScanKnownConfigLocations(boolean scanKnownConfigLocations) -
isScanKnownConfigLocations
public boolean isScanKnownConfigLocations() -
setSwaggerUiConfig
-
getSwaggerUiConfig
Description copied from interface:SwaggerUiSupportReturns Swagger UI configuration parameters.- Specified by:
getSwaggerUiConfigin interfaceSwaggerUiSupport- Returns:
- Swagger UI configuration parameters or "null" if not available
-
findSwaggerUiRoot
Description copied from interface:SwaggerUiSupportDetects the Swagger UI in root with respect to properties and configuration provided.- Specified by:
findSwaggerUiRootin interfaceSwaggerUiSupport- Returns:
- Swagger UI in root or "null" if not available
-
getUserProperties
-
registerOpenApiResources
protected void registerOpenApiResources(JAXRSServiceFactoryBean sfb, org.eclipse.microprofile.openapi.models.OpenAPI openApiDefinition) -
registerSwaggerUiResources
protected void registerSwaggerUiResources(JAXRSServiceFactoryBean sfb, Properties properties, ServerProviderFactory factory, Bus bus)
-