public static class Contract.Default extends Contract.BaseContract
Contract.BaseContract, Contract.Default
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
protected void |
processAnnotationOnClass(MethodMetadata data,
Class<?> targetType)
Called by parseAndValidateMetadata twice, first on the declaring class, then on the
target type (unless they are the same).
|
protected void |
processAnnotationOnMethod(MethodMetadata data,
Annotation methodAnnotation,
Method method) |
protected boolean |
processAnnotationsOnParameter(MethodMetadata data,
Annotation[] annotations,
int paramIndex) |
addTemplatedParam, nameParam, parseAndValidatateMetadata, parseAndValidatateMetadata, parseAndValidateMetadata
protected void processAnnotationOnClass(MethodMetadata data, Class<?> targetType)
Contract.BaseContract
processAnnotationOnClass
in class Contract.BaseContract
data
- metadata collected so far relating to the current java method.targetType
- the class to processprotected void processAnnotationOnMethod(MethodMetadata data, Annotation methodAnnotation, Method method)
processAnnotationOnMethod
in class Contract.BaseContract
data
- metadata collected so far relating to the current java method.methodAnnotation
- annotations present on the current method annotation.method
- method currently being processed.protected boolean processAnnotationsOnParameter(MethodMetadata data, Annotation[] annotations, int paramIndex)
processAnnotationsOnParameter
in class Contract.BaseContract
data
- metadata collected so far relating to the current java method.annotations
- annotations present on the current parameter annotation.paramIndex
- if you find a name in annotations
, call Contract.BaseContract.nameParam(MethodMetadata, String, int)
with this as the last parameter.Contract.BaseContract.nameParam(MethodMetadata, String, int)
after finding an
http-relevant annotation.Copyright © 2012–2016 OpenFeign. All rights reserved.