public abstract class AbstractSwaggerExtension extends Object implements SwaggerExtension
Constructor and Description |
---|
AbstractSwaggerExtension() |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.JavaType |
constructType(Type type) |
void |
decorateOperation(Operation operation,
Method method,
Iterator<SwaggerExtension> chain)
Decorates operation with additional vendor based extensions.
|
String |
extractOperationMethod(ApiOperation apiOperation,
Method method,
Iterator<SwaggerExtension> chain) |
List<Parameter> |
extractParameters(List<Annotation> annotations,
Type type,
Set<Type> typesToSkip,
Iterator<SwaggerExtension> chain) |
protected boolean |
shouldIgnoreClass(Class<?> cls) |
protected boolean |
shouldIgnoreType(Type type,
Set<Type> typesToSkip) |
public String extractOperationMethod(ApiOperation apiOperation, Method method, Iterator<SwaggerExtension> chain)
extractOperationMethod
in interface SwaggerExtension
public List<Parameter> extractParameters(List<Annotation> annotations, Type type, Set<Type> typesToSkip, Iterator<SwaggerExtension> chain)
extractParameters
in interface SwaggerExtension
public void decorateOperation(Operation operation, Method method, Iterator<SwaggerExtension> chain)
SwaggerExtension
decorateOperation
in interface SwaggerExtension
operation
- the operation, build from swagger definitionmethod
- the method for additional scanchain
- the chain with swagger extensions to processprotected boolean shouldIgnoreClass(Class<?> cls)
protected com.fasterxml.jackson.databind.JavaType constructType(Type type)
Copyright © 2019. All rights reserved.