public static class Swagger2Feature.Portable extends AbstractSwaggerFeature.Portable implements SwaggerUiSupport, SwaggerProperties
Modifier and Type | Class and Description |
---|---|
protected class |
Swagger2Feature.Portable.ReaderConfigFilter |
SwaggerUiSupport.Registration
licenseWasSet
SUPPORT_UI_PROPERTY
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_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, setVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSupportSwaggerUiProp, getSwaggerUi
getSwaggerProperties
doInitializeProvider, getActive, initialize, initialize, initialize
protected void calculateDefaultBasePath(Server server)
calculateDefaultBasePath
in class AbstractSwaggerFeature.Portable
protected void addSwaggerResource(Server server, Bus bus)
addSwaggerResource
in class AbstractSwaggerFeature.Portable
protected 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.Portable
public void setSwaggerUiMavenGroupAndArtifact(String swaggerUiMavenGroupAndArtifact)
swaggerUiMavenGroupAndArtifact
- public void setSwaggerUiVersion(String swaggerUiVersion)
public void setSupportSwaggerUi(boolean supportSwaggerUi)
public Boolean isSupportSwaggerUi()
SwaggerUiSupport
isSupportSwaggerUi
in interface SwaggerUiSupport
public Map<String,String> getSwaggerUiMediaTypes()
SwaggerUiSupport
getSwaggerUiMediaTypes
in interface SwaggerUiSupport
public 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()
SwaggerUiSupport
getSwaggerUiConfig
in interface SwaggerUiSupport
public String findSwaggerUiRoot()
SwaggerUiSupport
findSwaggerUiRoot
in interface SwaggerUiSupport
Apache CXF