Package feign
Class Contract.Default
- java.lang.Object
-
- feign.Contract.BaseContract
-
- feign.Contract.Default
-
- All Implemented Interfaces:
Contract
- Enclosing interface:
- Contract
public static class Contract.Default extends Contract.BaseContract
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface feign.Contract
Contract.BaseContract, Contract.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocessAnnotationOnClass(MethodMetadata data, java.lang.Class<?> targetType)Called by parseAndValidateMetadata twice, first on the declaring class, then on the target type (unless they are the same).protected voidprocessAnnotationOnMethod(MethodMetadata data, java.lang.annotation.Annotation methodAnnotation, java.lang.reflect.Method method)protected booleanprocessAnnotationsOnParameter(MethodMetadata data, java.lang.annotation.Annotation[] annotations, int paramIndex)-
Methods inherited from class feign.Contract.BaseContract
nameParam, parseAndValidatateMetadata, parseAndValidatateMetadata, parseAndValidateMetadata
-
-
-
-
Method Detail
-
processAnnotationOnClass
protected void processAnnotationOnClass(MethodMetadata data, java.lang.Class<?> targetType)
Description copied from class:Contract.BaseContractCalled by parseAndValidateMetadata twice, first on the declaring class, then on the target type (unless they are the same).- Specified by:
processAnnotationOnClassin classContract.BaseContract- Parameters:
data- metadata collected so far relating to the current java method.targetType- the class to process
-
processAnnotationOnMethod
protected void processAnnotationOnMethod(MethodMetadata data, java.lang.annotation.Annotation methodAnnotation, java.lang.reflect.Method method)
- Specified by:
processAnnotationOnMethodin classContract.BaseContract- Parameters:
data- metadata collected so far relating to the current java method.methodAnnotation- annotations present on the current method annotation.method- method currently being processed.
-
processAnnotationsOnParameter
protected boolean processAnnotationsOnParameter(MethodMetadata data, java.lang.annotation.Annotation[] annotations, int paramIndex)
- Specified by:
processAnnotationsOnParameterin classContract.BaseContract- Parameters:
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 inannotations, callContract.BaseContract.nameParam(MethodMetadata, String, int)with this as the last parameter.- Returns:
- true if you called
Contract.BaseContract.nameParam(MethodMetadata, String, int)after finding an http-relevant annotation.
-
-