public static class Swagger2Feature.Portable extends AbstractSwaggerFeature.Portable implements SwaggerUiSupport, SwaggerProperties
| Modifier and Type | Class and Description |
|---|---|
protected class |
Swagger2Feature.Portable.ReaderConfigFilter |
SwaggerUiSupport.RegistrationlicenseWasSetSUPPORT_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 |
|---|
Portable() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSwaggerResource(Server server,
Bus bus) |
protected void |
calculateDefaultBasePath(Server server) |
String |
findSwaggerUiRoot()
Detects the Swagger UI in root with respect to properties and configuration
provided.
|
Swagger2Customizer |
getCustomizer() |
String |
getHost() |
String |
getIgnoreRoutes() |
String |
getPropertiesLocation() |
String[] |
getSchemes() |
SwaggerUiConfig |
getSwaggerUiConfig()
Returns Swagger UI configuration parameters.
|
Map<String,String> |
getSwaggerUiMediaTypes()
Returns media types supported by Swagger UI
|
protected void |
initBeanConfig(io.swagger.jaxrs.config.BeanConfig beanConfig,
Properties props) |
Boolean |
isPrettyPrint() |
boolean |
isScan() |
boolean |
isScanAllResources() |
Boolean |
isSupportSwaggerUi()
Checks if Swagger UI support is available or not.
|
Boolean |
isUsePathBasedConfig() |
protected 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(SwaggerUiConfig swaggerUiConfig) |
void |
setSwaggerUiMavenGroupAndArtifact(String swaggerUiMavenGroupAndArtifact)
Set SwaggerUI Maven group and artifact using the "groupId/artifactId" format.
|
void |
setSwaggerUiMediaTypes(Map<String,String> swaggerUiMediaTypes) |
void |
setSwaggerUiVersion(String swaggerUiVersion) |
void |
setUsePathBasedConfig(Boolean usePathBasedConfig) |
getBasePath, getContact, getDescription, getFilterClass, getLicense, getLicenseUrl, getResourcePackage, getTermsOfServiceUrl, getTitle, getVersion, initialize, isActivateOnlyIfJaxrsSupported, isRunAsFilter, setActivateOnlyIfJaxrsSupported, setBasePath, setContact, setDescription, setFilterClass, setLicense, setLicenseUrl, setResourcePackage, setRunAsFilter, setTermsOfServiceUrl, setTitle, setVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSupportSwaggerUiProp, getSwaggerUigetSwaggerPropertiesdoInitializeProvider, getActive, initialize, initialize, initializeprotected void calculateDefaultBasePath(Server server)
calculateDefaultBasePath in class AbstractSwaggerFeature.Portableprotected void addSwaggerResource(Server server, Bus bus)
addSwaggerResource in class AbstractSwaggerFeature.Portableprotected 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)
protected void setBasePathByAddress(String address)
setBasePathByAddress in class AbstractSwaggerFeature.Portablepublic void setSwaggerUiMavenGroupAndArtifact(String swaggerUiMavenGroupAndArtifact)
swaggerUiMavenGroupAndArtifact - public void setSwaggerUiVersion(String swaggerUiVersion)
public void setSupportSwaggerUi(boolean supportSwaggerUi)
public Boolean isSupportSwaggerUi()
SwaggerUiSupportisSupportSwaggerUi in interface SwaggerUiSupportpublic Map<String,String> getSwaggerUiMediaTypes()
SwaggerUiSupportgetSwaggerUiMediaTypes in interface 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(SwaggerUiConfig swaggerUiConfig)
public SwaggerUiConfig getSwaggerUiConfig()
SwaggerUiSupportgetSwaggerUiConfig in interface SwaggerUiSupportpublic String findSwaggerUiRoot()
SwaggerUiSupportfindSwaggerUiRoot in interface SwaggerUiSupportApache CXF