Package org.apache.cxf.jaxrs.openapi
Class OpenApiFeature.Portable
java.lang.Object
org.apache.cxf.jaxrs.openapi.OpenApiFeature.Portable
- All Implemented Interfaces:
AbstractPortableFeature,Feature,SwaggerProperties,SwaggerUiSupport
- Enclosing class:
- OpenApiFeature
public static class OpenApiFeature.Portable
extends Object
implements AbstractPortableFeature, SwaggerUiSupport, SwaggerProperties
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupport
SwaggerUiSupport.Registration -
Field Summary
Fields 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) voidinitialize(Server server, Bus bus) booleanbooleanbooleanbooleanisScan()booleanChecks if Swagger UI support is available or not.booleanprotected voidregisterOpenApiResources(JAXRSServiceFactoryBean sfb, Set<String> packages, io.swagger.v3.oas.integration.api.OpenAPIConfiguration config) protected voidprotected voidregisterSwaggerUiResources(JAXRSServiceFactoryBean sfb, Properties properties, ServerProviderFactory factory, Bus bus) voidsetConfigLocation(String configLocation) voidsetContactEmail(String contactEmail) voidsetContactName(String contactName) voidsetContactUrl(String contactUrl) voidsetCustomizer(OpenApiCustomizer customizer) 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) voidsetScannerClass(String scannerClass) voidsetSecurityDefinitions(Map<String, io.swagger.v3.oas.models.security.SecurityScheme> securityDefinitions) voidsetSupportSwaggerUi(Boolean supportSwaggerUi) voidsetSwaggerUiConfig(SwaggerUiConfig swaggerUiConfig) voidsetSwaggerUiMavenGroupAndArtifact(String swaggerUiMavenGroupAndArtifact) voidsetSwaggerUiMediaTypes(Map<String, String> swaggerUiMediaTypes) voidsetSwaggerUiVersion(String swaggerUiVersion) voidsetTermsOfServiceUrl(String termsOfServiceUrl) voidvoidsetUseContextBasedConfig(boolean useContextBasedConfig) voidsetVersion(String version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.feature.AbstractPortableFeature
doInitializeProvider, initialize, initialize, initializeMethods 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
-
Portable
public Portable()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceAbstractPortableFeature- Specified by:
initializein interfaceFeature
-
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) -
getSecurityDefinitions
-
setSecurityDefinitions
-
getCustomizer
-
setCustomizer
-
setScanKnownConfigLocations
public void setScanKnownConfigLocations(boolean scanKnownConfigLocations) -
isScanKnownConfigLocations
public boolean isScanKnownConfigLocations() -
setSwaggerUiConfig
-
setUseContextBasedConfig
public void setUseContextBasedConfig(boolean useContextBasedConfig) -
isUseContextBasedConfig
public boolean isUseContextBasedConfig() -
getScannerClass
-
setScannerClass
-
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, Set<String> packages, io.swagger.v3.oas.integration.api.OpenAPIConfiguration config) -
registerServletConfigProvider
-
registerSwaggerUiResources
protected void registerSwaggerUiResources(JAXRSServiceFactoryBean sfb, Properties properties, ServerProviderFactory factory, Bus bus)
-