Package io.swagger.jaxrs.ext
Class AbstractSwaggerExtension
- java.lang.Object
-
- io.swagger.jaxrs.ext.AbstractSwaggerExtension
-
- All Implemented Interfaces:
SwaggerExtension
- Direct Known Subclasses:
DefaultParameterExtension
public abstract class AbstractSwaggerExtension extends Object implements SwaggerExtension
-
-
Constructor Summary
Constructors Constructor Description AbstractSwaggerExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.JavaTypeconstructType(Type type)voiddecorateOperation(io.swagger.models.Operation operation, Method method, Iterator<SwaggerExtension> chain)Decorates operation with additional vendor based extensions.StringextractOperationMethod(io.swagger.annotations.ApiOperation apiOperation, Method method, Iterator<SwaggerExtension> chain)List<io.swagger.models.parameters.Parameter>extractParameters(List<Annotation> annotations, Type type, Set<Type> typesToSkip, Iterator<SwaggerExtension> chain)protected booleanshouldIgnoreClass(Class<?> cls)protected booleanshouldIgnoreType(Type type, Set<Type> typesToSkip)
-
-
-
Method Detail
-
extractOperationMethod
public String extractOperationMethod(io.swagger.annotations.ApiOperation apiOperation, Method method, Iterator<SwaggerExtension> chain)
- Specified by:
extractOperationMethodin interfaceSwaggerExtension
-
extractParameters
public List<io.swagger.models.parameters.Parameter> extractParameters(List<Annotation> annotations, Type type, Set<Type> typesToSkip, Iterator<SwaggerExtension> chain)
- Specified by:
extractParametersin interfaceSwaggerExtension
-
decorateOperation
public void decorateOperation(io.swagger.models.Operation operation, Method method, Iterator<SwaggerExtension> chain)Description copied from interface:SwaggerExtensionDecorates operation with additional vendor based extensions.- Specified by:
decorateOperationin interfaceSwaggerExtension- Parameters:
operation- the operation, build from swagger definitionmethod- the method for additional scanchain- the chain with swagger extensions to process
-
shouldIgnoreClass
protected boolean shouldIgnoreClass(Class<?> cls)
-
constructType
protected com.fasterxml.jackson.databind.JavaType constructType(Type type)
-
-