public final class MethodMetadata extends Object implements Serializable
public String configKey()
logging
or reflective dispatch
.public MethodMetadata configKey(String configKey)
public Type returnType()
public MethodMetadata returnType(Type returnType)
public Integer urlIndex()
public MethodMetadata urlIndex(Integer urlIndex)
public Integer bodyIndex()
public MethodMetadata bodyIndex(Integer bodyIndex)
public Integer headerMapIndex()
public MethodMetadata headerMapIndex(Integer headerMapIndex)
public Integer queryMapIndex()
public MethodMetadata queryMapIndex(Integer queryMapIndex)
public boolean queryMapEncoded()
public MethodMetadata queryMapEncoded(boolean queryMapEncoded)
public Type bodyType()
bodyIndex()
.public MethodMetadata bodyType(Type bodyType)
public RequestTemplate template()
public Map<Integer,Collection<String>> indexToName()
public Map<Integer,Class<? extends Param.Expander>> indexToExpanderClass()
indexToExpander
is null, classes here will be instantiated by newInstance.public MethodMetadata indexToExpander(Map<Integer,Param.Expander> indexToExpander)
indexToExpanderClass
is populated, this is set by contracts that support runtime
injection.public Map<Integer,Param.Expander> indexToExpander()
indexToExpander()
.public MethodMetadata ignoreParamater(int i)
i
- individual parameter that should be ignoredpublic BitSet parameterToIgnore()
public MethodMetadata parameterToIgnore(BitSet parameterToIgnore)
public boolean shouldIgnoreParamater(int i)
i
- individual parameter to check if should be ignoredpublic boolean isAlreadyProcessed(Integer index)
index
- index
was already consumed by a any
MethodMetadata
holderpublic void ignoreMethod()
public boolean isIgnored()
@Experimental public MethodMetadata targetType(Class<?> targetType)
@Experimental public Class<?> targetType()
@Experimental public MethodMetadata method(Method method)
@Experimental public Method method()
public void addWarning(String warning)
public String warnings()
Copyright © 2012–2020 OpenFeign. All rights reserved.