public class Swagger2Customizer extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
applyDefaultVersion |
protected 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<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(Swagger data) |
Swagger |
customize(Swagger data) |
protected String |
getNormalizedPath(String classResourcePath,
String operationResourcePath) |
void |
setApplyDefaultVersion(boolean applyDefaultVersion) |
void |
setBeanConfig(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 BeanConfig beanConfig
public Swagger customize(Swagger data)
protected String getNormalizedPath(String classResourcePath, String operationResourcePath)
protected void applyDefaultVersion(Swagger data)
protected void addParameters(List<Parameter> parameters)
Operation
instance; the method is invoked
for all instances available.parameters
- list of parameters defined for an Operation
io.swagger.models.parameters.HeaderParameter
,
io.swagger.models.parameters.CookieParameter
,
io.swagger.models.parameters.PathParameter
,
io.swagger.models.parameters.BodyParameter
,
io.swagger.models.parameters.QueryParameter
,
io.swagger.models.parameters.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(BeanConfig beanConfig)
public void setApplyDefaultVersion(boolean applyDefaultVersion)
Apache CXF