public class Swagger2Customizer extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
applyDefaultVersion |
protected io.swagger.jaxrs.config.BeanConfig |
beanConfig |
protected List<ClassResourceInfo> |
cris |
protected boolean |
dynamicBasePath |
protected DocumentationProvider |
javadocProvider |
protected boolean |
replaceTags |
Constructor and Description |
---|
Swagger2Customizer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameters(List<io.swagger.models.parameters.Parameter> parameters)
Allows to add parameters to the list, related to an
Operation instance; the method is invoked
for all instances available. |
protected void |
applyDefaultVersion(io.swagger.models.Swagger data) |
io.swagger.models.Swagger |
customize(io.swagger.models.Swagger data) |
protected String |
getNormalizedPath(String classResourcePath,
String operationResourcePath) |
void |
setApplyDefaultVersion(boolean applyDefaultVersion) |
void |
setBeanConfig(io.swagger.jaxrs.config.BeanConfig beanConfig) |
void |
setClassResourceInfos(List<ClassResourceInfo> classResourceInfos) |
void |
setDynamicBasePath(boolean dynamicBasePath) |
void |
setJavaDocPath(String javaDocPath) |
void |
setJavaDocPaths(String... javaDocPaths) |
void |
setJavadocProvider(DocumentationProvider javadocProvider) |
void |
setJavaDocURLs(URL[] javaDocURLs) |
void |
setReplaceTags(boolean replaceTags) |
protected boolean dynamicBasePath
protected boolean replaceTags
protected boolean applyDefaultVersion
protected DocumentationProvider javadocProvider
protected List<ClassResourceInfo> cris
protected io.swagger.jaxrs.config.BeanConfig beanConfig
public io.swagger.models.Swagger customize(io.swagger.models.Swagger data)
protected String getNormalizedPath(String classResourcePath, String operationResourcePath)
protected void applyDefaultVersion(io.swagger.models.Swagger data)
protected void addParameters(List<io.swagger.models.parameters.Parameter> parameters)
Operation
instance; the method is invoked
for all instances available.parameters
- list of parameters defined for an Operation
HeaderParameter
,
CookieParameter
,
PathParameter
,
BodyParameter
,
QueryParameter
,
RefParameter
public void setDynamicBasePath(boolean dynamicBasePath)
public void setReplaceTags(boolean replaceTags)
public void setJavadocProvider(DocumentationProvider javadocProvider)
public void setClassResourceInfos(List<ClassResourceInfo> classResourceInfos)
public void setJavaDocPaths(String... javaDocPaths) throws Exception
Exception
public void setJavaDocURLs(URL[] javaDocURLs)
public void setBeanConfig(io.swagger.jaxrs.config.BeanConfig beanConfig)
public void setApplyDefaultVersion(boolean applyDefaultVersion)
Apache CXF