public class OpenApiCustomizer extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
applicationPath |
protected List<ClassResourceInfo> |
cris |
protected boolean |
dynamicBasePath |
protected DocumentationProvider |
javadocProvider |
protected boolean |
replaceTags |
Constructor and Description |
---|
OpenApiCustomizer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameters(List<io.swagger.v3.oas.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 MessageContext |
createMessageContext() |
void |
customize(io.swagger.v3.oas.models.OpenAPI oas) |
io.swagger.v3.oas.integration.api.OpenAPIConfiguration |
customize(io.swagger.v3.oas.integration.api.OpenAPIConfiguration configuration) |
protected void |
customizeResponses(io.swagger.v3.oas.models.Operation operation,
OperationResourceInfo ori)
Allows to customize the responses of the given
Operation instance; the method is invoked
for all instances available. |
protected String |
extractJavadoc(io.swagger.v3.oas.models.Operation operation,
OperationResourceInfo ori,
int paramIdx) |
protected String |
getNormalizedPath(String classResourcePath,
String operationResourcePath) |
void |
setApplicationInfo(ApplicationInfo application) |
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 DocumentationProvider javadocProvider
protected List<ClassResourceInfo> cris
protected String applicationPath
public io.swagger.v3.oas.integration.api.OpenAPIConfiguration customize(io.swagger.v3.oas.integration.api.OpenAPIConfiguration configuration)
protected String extractJavadoc(io.swagger.v3.oas.models.Operation operation, OperationResourceInfo ori, int paramIdx)
public void customize(io.swagger.v3.oas.models.OpenAPI oas)
protected String getNormalizedPath(String classResourcePath, String operationResourcePath)
protected void addParameters(List<io.swagger.v3.oas.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
,
QueryParameter
protected void customizeResponses(io.swagger.v3.oas.models.Operation operation, OperationResourceInfo ori)
Operation
instance; the method is invoked
for all instances available.operation
- operation instanceori
- CXF data about the given operation instancepublic 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 setApplicationInfo(ApplicationInfo application)
protected MessageContext createMessageContext()
Apache CXF