public class Swagger2Feature extends AbstractSwaggerFeature<Swagger2Feature.Portable> implements SwaggerUiSupport, SwaggerProperties
Modifier and Type | Class and Description |
---|---|
static class |
Swagger2Feature.Portable |
protected static class |
Swagger2Feature.SwaggerContainerRequestFilter |
SwaggerUiSupport.Registration
delegate
enabled
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 |
---|
Swagger2Feature() |
Modifier and Type | Method and Description |
---|---|
void |
addSwaggerResource(Server server,
Bus bus) |
void |
calculateDefaultBasePath(Server server) |
String |
findSwaggerUiRoot()
Detects the Swagger UI in root with respect to properties and configuration
provided.
|
Swagger2Customizer |
getCustomizer() |
protected Swagger2Feature.Portable |
getDelegate() |
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
|
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() |
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) |
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, setVersion
initialize, initialize, initialize, initialize, initializeProvider, setDelegate
doInitializeProvider, getActive, getID, isEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSupportSwaggerUiProp, getSwaggerUi
getSwaggerProperties
protected Swagger2Feature.Portable getDelegate()
getDelegate
in class DelegatingFeature<Swagger2Feature.Portable>
public void calculateDefaultBasePath(Server server)
calculateDefaultBasePath
in class AbstractSwaggerFeature<Swagger2Feature.Portable>
public void addSwaggerResource(Server server, 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()
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