public class ServletReaderExtension extends java.lang.Object implements ReaderExtension
| Constructor and Description |
|---|
ServletReaderExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConsumes(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the consumes from the method's annotations and applies these to the operation.
|
void |
applyDescription(Operation operation,
java.lang.reflect.Method method)
Reads the description from the method's annotations and applies it to the operation.
|
void |
applyExtensions(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the extensions from the method's annotations and applies these to the operation.
|
void |
applyImplicitParameters(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the implicit parameters from the method's annotations and applies these to the operation.
|
void |
applyOperationId(Operation operation,
java.lang.reflect.Method method)
Reads the operation id from the method's annotations and applies it to the operation.
|
void |
applyParameters(ReaderContext context,
Operation operation,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
Reads the parameters from the method's annotations and applies these to the operation.
|
void |
applyProduces(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the produces from the method's annotations and applies these to the operation.
|
void |
applyResponses(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the responses from the method's annotations and applies these to the operation.
|
void |
applySchemes(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the schemes from the method's annotations and applies these to the operation.
|
void |
applySecurityRequirements(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the security requirement from the method's annotations and applies these to the operation.
|
void |
applySummary(Operation operation,
java.lang.reflect.Method method)
Reads the summary from the method's annotations and applies it to the operation.
|
void |
applyTags(ReaderContext context,
Operation operation,
java.lang.reflect.Method method)
Reads the tags from the method's annotations and applies these to the operation.
|
java.lang.String |
getHttpMethod(ReaderContext context,
java.lang.reflect.Method method)
Returns http method.
|
java.lang.String |
getPath(ReaderContext context,
java.lang.reflect.Method method)
Returns operation's path.
|
int |
getPriority()
Returns this extension's priority.
|
boolean |
isReadable(ReaderContext context)
Checks that a resource should be scanned.
|
void |
setDeprecated(Operation operation,
java.lang.reflect.Method method)
Sets the deprecated flag to the operation.
|
public int getPriority()
ReaderExtensiongetPriority in interface ReaderExtensionpublic boolean isReadable(ReaderContext context)
ReaderExtensionisReadable in interface ReaderExtensioncontext - is the resource contextpublic void applyConsumes(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyConsumes in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applyProduces(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyProduces in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationspublic java.lang.String getHttpMethod(ReaderContext context, java.lang.reflect.Method method)
ReaderExtensiongetHttpMethod in interface ReaderExtensioncontext - is the resource contextmethod - is the method for reading annotationspublic java.lang.String getPath(ReaderContext context, java.lang.reflect.Method method)
ReaderExtensiongetPath in interface ReaderExtensioncontext - is the resource contextmethod - is the method for reading annotationspublic void applyOperationId(Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyOperationId in interface ReaderExtensionoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applySummary(Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplySummary in interface ReaderExtensionoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applyDescription(Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyDescription in interface ReaderExtensionoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applySchemes(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplySchemes in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationspublic void setDeprecated(Operation operation, java.lang.reflect.Method method)
ReaderExtensionsetDeprecated in interface ReaderExtensionoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applySecurityRequirements(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplySecurityRequirements in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applyTags(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyTags in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applyResponses(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyResponses in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applyParameters(ReaderContext context, Operation operation, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations)
ReaderExtensionapplyParameters in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datatype - is the type of parameterannotations - are the method's annotationspublic void applyImplicitParameters(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyImplicitParameters in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationspublic void applyExtensions(ReaderContext context, Operation operation, java.lang.reflect.Method method)
ReaderExtensionapplyExtensions in interface ReaderExtensioncontext - is the resource contextoperation - is the container for the operation datamethod - is the method for reading annotationsCopyright © 2021. All Rights Reserved.