Package feign
Class MethodMetadata
- java.lang.Object
-
- feign.MethodMetadata
-
- All Implemented Interfaces:
java.io.Serializable
public final class MethodMetadata extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
bodyIndex()
MethodMetadata
bodyIndex(java.lang.Integer bodyIndex)
java.lang.reflect.Type
bodyType()
Type corresponding tobodyIndex()
.MethodMetadata
bodyType(java.lang.reflect.Type bodyType)
java.lang.String
configKey()
Used as a reference to this method.MethodMetadata
configKey(java.lang.String configKey)
java.util.List<java.lang.String>
formParams()
java.lang.Integer
headerMapIndex()
MethodMetadata
headerMapIndex(java.lang.Integer headerMapIndex)
java.util.Map<java.lang.Integer,java.lang.Boolean>
indexToEncoded()
java.util.Map<java.lang.Integer,Param.Expander>
indexToExpander()
When not null, this value will be used instead ofindexToExpander()
.MethodMetadata
indexToExpander(java.util.Map<java.lang.Integer,Param.Expander> indexToExpander)
AfterindexToExpanderClass
is populated, this is set by contracts that support runtime injection.java.util.Map<java.lang.Integer,java.lang.Class<? extends Param.Expander>>
indexToExpanderClass()
IfindexToExpander
is null, classes here will be instantiated by newInstance.java.util.Map<java.lang.Integer,java.util.Collection<java.lang.String>>
indexToName()
boolean
queryMapEncoded()
MethodMetadata
queryMapEncoded(boolean queryMapEncoded)
java.lang.Integer
queryMapIndex()
MethodMetadata
queryMapIndex(java.lang.Integer queryMapIndex)
java.lang.reflect.Type
returnType()
MethodMetadata
returnType(java.lang.reflect.Type returnType)
RequestTemplate
template()
java.lang.Integer
urlIndex()
MethodMetadata
urlIndex(java.lang.Integer urlIndex)
-
-
-
Method Detail
-
configKey
public java.lang.String configKey()
Used as a reference to this method. For example,logging
orreflective dispatch
.
-
configKey
public MethodMetadata configKey(java.lang.String configKey)
-
returnType
public java.lang.reflect.Type returnType()
-
returnType
public MethodMetadata returnType(java.lang.reflect.Type returnType)
-
urlIndex
public java.lang.Integer urlIndex()
-
urlIndex
public MethodMetadata urlIndex(java.lang.Integer urlIndex)
-
bodyIndex
public java.lang.Integer bodyIndex()
-
bodyIndex
public MethodMetadata bodyIndex(java.lang.Integer bodyIndex)
-
headerMapIndex
public java.lang.Integer headerMapIndex()
-
headerMapIndex
public MethodMetadata headerMapIndex(java.lang.Integer headerMapIndex)
-
queryMapIndex
public java.lang.Integer queryMapIndex()
-
queryMapIndex
public MethodMetadata queryMapIndex(java.lang.Integer queryMapIndex)
-
queryMapEncoded
public boolean queryMapEncoded()
-
queryMapEncoded
public MethodMetadata queryMapEncoded(boolean queryMapEncoded)
-
bodyType
public java.lang.reflect.Type bodyType()
Type corresponding tobodyIndex()
.
-
bodyType
public MethodMetadata bodyType(java.lang.reflect.Type bodyType)
-
template
public RequestTemplate template()
-
formParams
public java.util.List<java.lang.String> formParams()
-
indexToName
public java.util.Map<java.lang.Integer,java.util.Collection<java.lang.String>> indexToName()
-
indexToEncoded
public java.util.Map<java.lang.Integer,java.lang.Boolean> indexToEncoded()
-
indexToExpanderClass
public java.util.Map<java.lang.Integer,java.lang.Class<? extends Param.Expander>> indexToExpanderClass()
IfindexToExpander
is null, classes here will be instantiated by newInstance.
-
indexToExpander
public MethodMetadata indexToExpander(java.util.Map<java.lang.Integer,Param.Expander> indexToExpander)
AfterindexToExpanderClass
is populated, this is set by contracts that support runtime injection.
-
indexToExpander
public java.util.Map<java.lang.Integer,Param.Expander> indexToExpander()
When not null, this value will be used instead ofindexToExpander()
.
-
-