public class Swagger2Feature
extends org.apache.cxf.jaxrs.swagger.Swagger2Feature
Swagger2Feature
; so that AbstractSwaggerFeature.setBasePath(String)
can be overridden and the rest of the settings same.
< jaxrs:server id="common_jaxrsservices" address="/${webservice.address.neurosys.common}/" > ... < jaxrs:features> < bean class="com.neurosys.service.jaxrs.Swagger2Feature">< property name="title" value="Neurosys Common Services" /> < property name="basePath" value="/services/${webservice.address.Nneurosys.common}" /> < /bean> < !-- < bean class="org.apache.cxf.jaxrs.swagger.Swagger2Feature" scope="prototype"> < property name="title" value="Neurosys Common Services" /> < property name="basePath" value="/services/${webservice.address.neurosys.common}" /> < property name="license" value="NeuroSystems Technologies Pvt. Ltd." /> < property name="licenseUrl" value="http://neurosys.biz/stumps/dev-docs/project/license.md" /> < property name="version" value="1.0" /> < property name="description"> Objects & Web Services]]> < /bean> --> < /jaxrs:features> < /jaxrs:server>
org.apache.cxf.jaxrs.swagger.Swagger2Feature.DefaultApplication, org.apache.cxf.jaxrs.swagger.Swagger2Feature.ReaderConfigFilter, org.apache.cxf.jaxrs.swagger.Swagger2Feature.SwaggerContainerRequestFilter, org.apache.cxf.jaxrs.swagger.Swagger2Feature.SwaggerUIResourceFilter, org.apache.cxf.jaxrs.swagger.Swagger2Feature.SwaggerUIService, org.apache.cxf.jaxrs.swagger.Swagger2Feature.SwaggerUIServiceFilter
enabled
Constructor and Description |
---|
Swagger2Feature(org.apache.cxf.jaxrs.swagger.Swagger2Feature parent,
boolean enabled) |
addSwaggerResource, calculateDefaultBasePath, getCustomizer, getHost, getIgnoreRoutes, getSchemes, isPrettyPrint, isScanAllResources, isUsePathBasedConfig, setBasePathByAddress, setCustomizer, setHost, setIgnoreRoutes, setPrettyPrint, setScanAllResources, setSchemes, setSecurityDefinitions, setSupportSwaggerUi, setSwagger2Serializers, setSwaggerUiMavenGroupAndArtifact, setSwaggerUiMediaTypes, setSwaggerUiVersion, setUsePathBasedConfig
getBasePath, getContact, getDescription, getFilterClass, getLicense, getLicenseUrl, getResourcePackage, getTermsOfServiceUrl, getTitle, getVersion, initialize, isActivateOnlyIfJaxrsSupported, isRunAsFilter, isScan, setActivateOnlyIfJaxrsSupported, setBasePath, setContact, setDescription, setFilterClass, setLicense, setLicenseUrl, setResourcePackage, setRunAsFilter, setScan, setTermsOfServiceUrl, setTitle, setVersion
getActive, getID, initialize, initialize, initialize, initializeProvider
isEnabled
Copyright © 2018. All rights reserved.