public class Swagger2Feature extends AbstractSwaggerFeature<Swagger2Feature.Portable> implements org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupport, org.apache.cxf.jaxrs.common.openapi.SwaggerProperties
| Modifier and Type | Class and Description |
|---|---|
static class |
Swagger2Feature.Portable |
protected static class |
Swagger2Feature.SwaggerContainerRequestFilter |
enabledSUPPORT_UI_PROPERTYCONTACT_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_PROPERTY| Constructor and Description |
|---|
Swagger2Feature() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSwaggerResource(org.apache.cxf.endpoint.Server server,
org.apache.cxf.Bus bus) |
void |
calculateDefaultBasePath(org.apache.cxf.endpoint.Server server) |
String |
findSwaggerUiRoot() |
Swagger2Customizer |
getCustomizer() |
protected Swagger2Feature.Portable |
getDelegate() |
String |
getHost() |
String |
getIgnoreRoutes() |
String |
getPropertiesLocation() |
String[] |
getSchemes() |
org.apache.cxf.jaxrs.swagger.ui.SwaggerUiConfig |
getSwaggerUiConfig() |
Map<String,String> |
getSwaggerUiMediaTypes() |
void |
initBeanConfig(io.swagger.jaxrs.config.BeanConfig beanConfig,
Properties props) |
Boolean |
isPrettyPrint() |
boolean |
isScan() |
boolean |
isScanAllResources() |
Boolean |
isSupportSwaggerUi() |
Boolean |
isUsePathBasedConfig() |
void |
setBasePathByAddress(String address) |
void |
setCustomizer(Swagger2Customizer customizer) |
void |
setHost(String host) |
void |
setIgnoreRoutes(String ignoreRoutes) |
void |
setPrettyPrint(Boolean prettyPrint) |
void |
setPropertiesLocation(String propertiesLocation) |
void |
setScan(boolean scan) |
void |
setScanAllResources(boolean scanAllResources) |
void |
setSchemes(String[] schemes) |
void |
setSecurityDefinitions(Map<String,io.swagger.models.auth.SecuritySchemeDefinition> securityDefinitions) |
void |
setSupportSwaggerUi(boolean supportSwaggerUi) |
void |
setSwaggerUiConfig(org.apache.cxf.jaxrs.swagger.ui.SwaggerUiConfig swaggerUiConfig) |
void |
setSwaggerUiMavenGroupAndArtifact(String swaggerUiMavenGroupAndArtifact) |
void |
setSwaggerUiMediaTypes(Map<String,String> swaggerUiMediaTypes) |
void |
setSwaggerUiVersion(String swaggerUiVersion) |
void |
setUsePathBasedConfig(Boolean usePathBasedConfig) |
calculateDefaultResourcePackage, getBasePath, getContact, getDescription, getFilterClass, getLicense, getLicenseUrl, getResourcePackage, getTermsOfServiceUrl, getTitle, getVersion, isActivateOnlyIfJaxrsSupported, isRunAsFilter, isSwaggerJaxRsAvailable, setActivateOnlyIfJaxrsSupported, setBasePath, setContact, setDescription, setFilterClass, setLicense, setLicenseUrl, setResourcePackage, setRunAsFilter, setTermsOfServiceUrl, setTitle, setVersioninitialize, initialize, initialize, initialize, initializeProvider, setDelegatedoInitializeProvider, getActive, getID, isEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected Swagger2Feature.Portable getDelegate()
getDelegate in class org.apache.cxf.feature.DelegatingFeature<Swagger2Feature.Portable>public void calculateDefaultBasePath(org.apache.cxf.endpoint.Server server)
calculateDefaultBasePath in class AbstractSwaggerFeature<Swagger2Feature.Portable>public void addSwaggerResource(org.apache.cxf.endpoint.Server server,
org.apache.cxf.Bus bus)
addSwaggerResource in class AbstractSwaggerFeature<Swagger2Feature.Portable>public void initBeanConfig(io.swagger.jaxrs.config.BeanConfig beanConfig,
Properties props)
public Boolean isUsePathBasedConfig()
public void setUsePathBasedConfig(Boolean usePathBasedConfig)
public String getHost()
public void setHost(String host)
public String[] getSchemes()
public void setSchemes(String[] schemes)
public Boolean isPrettyPrint()
public void setPrettyPrint(Boolean prettyPrint)
public Swagger2Customizer getCustomizer()
public void setCustomizer(Swagger2Customizer customizer)
public boolean isScanAllResources()
public void setScanAllResources(boolean scanAllResources)
public String getIgnoreRoutes()
public void setIgnoreRoutes(String ignoreRoutes)
public void setBasePathByAddress(String address)
setBasePathByAddress in class AbstractSwaggerFeature<Swagger2Feature.Portable>public void setSwaggerUiMavenGroupAndArtifact(String swaggerUiMavenGroupAndArtifact)
public void setSwaggerUiVersion(String swaggerUiVersion)
public void setSupportSwaggerUi(boolean supportSwaggerUi)
public Boolean isSupportSwaggerUi()
isSupportSwaggerUi in interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupportpublic Map<String,String> getSwaggerUiMediaTypes()
getSwaggerUiMediaTypes in interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupportpublic void setSecurityDefinitions(Map<String,io.swagger.models.auth.SecuritySchemeDefinition> securityDefinitions)
public String getPropertiesLocation()
public void setPropertiesLocation(String propertiesLocation)
public boolean isScan()
public void setScan(boolean scan)
public void setSwaggerUiConfig(org.apache.cxf.jaxrs.swagger.ui.SwaggerUiConfig swaggerUiConfig)
public org.apache.cxf.jaxrs.swagger.ui.SwaggerUiConfig getSwaggerUiConfig()
getSwaggerUiConfig in interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupportpublic String findSwaggerUiRoot()
findSwaggerUiRoot in interface org.apache.cxf.jaxrs.swagger.ui.SwaggerUiSupportApache CXF