public class RestMethodInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
automapping |
protected java.util.List<javax.ws.rs.core.MediaType> |
consumed
The consumed media types.
|
protected java.lang.Class<?> |
dclazz
Delegation class.
|
protected java.lang.String |
dmname
The delegation (prototype) method.
|
protected java.lang.Class<?>[] |
exceptiontypes
The return type.
|
protected java.lang.reflect.Method |
method
The original method.
|
protected jadex.commons.MethodInfo |
methodmapper
The original service method.
|
protected java.lang.String |
name
The method name that represents the path.
|
protected java.util.List<java.util.List<jadex.commons.Tuple2<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>>> |
parameterannos
The parameter annotations.
|
protected jadex.extension.rs.publish.Value |
parametermapper
The parameter mapper info.
|
protected java.lang.Class<?>[] |
parametertypes
The parameter types.
|
protected java.lang.String |
path
The method path.
|
protected java.util.List<javax.ws.rs.core.MediaType> |
produced
The produced media types.
|
protected java.lang.Class<?> |
resttype
The rest method type.
|
protected jadex.extension.rs.publish.Value |
resultmapper
The result mapper info.
|
protected java.lang.reflect.Type |
returntype
The return type.
|
protected java.lang.String |
signature
The signature.
|
Constructor and Description |
---|
RestMethodInfo(java.lang.Class<?>[] parametertypes,
java.lang.reflect.Type returntype,
java.lang.Class<?>[] exceptiontypes,
java.lang.String name,
java.lang.String path,
java.lang.Class<?> resttype,
java.util.List<javax.ws.rs.core.MediaType> consumed,
java.util.List<javax.ws.rs.core.MediaType> produced,
jadex.commons.MethodInfo methodmapper,
jadex.extension.rs.publish.Value parametermapper,
boolean automapping,
jadex.extension.rs.publish.Value resultmapper,
java.lang.Class<?> dclazz,
java.lang.String dmname)
Create a new rest method info.
|
RestMethodInfo(java.lang.reflect.Method method,
java.lang.String name,
java.lang.String path,
java.lang.Class<?> resttype,
java.util.List<javax.ws.rs.core.MediaType> consumed,
java.util.List<javax.ws.rs.core.MediaType> produced,
jadex.commons.MethodInfo methodmapper,
jadex.extension.rs.publish.Value parametermapper,
boolean automapping,
jadex.extension.rs.publish.Value resultmapper,
java.lang.Class<?> dclazz,
java.lang.String dmname)
Create a new rest method info.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildSignature(java.lang.String name,
java.lang.Class<?>[] paramtypes)
Get the signature.
|
java.util.List<java.util.List<jadex.commons.Tuple2<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>>> |
getAnnotationInfo()
Get the annotations of a method as list of list of tuples.
|
java.util.List<javax.ws.rs.core.MediaType> |
getConsumed()
Get the consumed.
|
java.lang.Class<?> |
getDelegateClazz()
Get the dclazz.
|
java.lang.String |
getDelegateMethodName()
Get the dmname.
|
java.lang.Class<?>[] |
getExceptionTypes()
Get the exception types.
|
jadex.commons.MethodInfo |
getMethodMapper()
Get the methodmapper.
|
java.lang.String |
getName()
Get the name.
|
jadex.extension.rs.publish.Value |
getParameterMapper()
Get the parametermapper.
|
java.lang.Class<?>[] |
getParameterTypes()
Get the parameter types.
|
java.lang.String |
getPath()
Get the path.
|
java.util.List<javax.ws.rs.core.MediaType> |
getProduced()
Get the produced.
|
java.lang.Class<?> |
getRestType()
Get the resttype.
|
jadex.extension.rs.publish.Value |
getResultMapper()
Get the resultmapper.
|
java.lang.reflect.Type |
getReturnType()
Get the return type.
|
java.lang.String |
getSignature()
Get the method signature.
|
boolean |
isAutomapping()
Get the automapping.
|
void |
setAutomapping(boolean automapping)
Set the automapping.
|
void |
setConsumed(java.util.List<javax.ws.rs.core.MediaType> consumed)
Set the consumed.
|
void |
setDelegateClazz(java.lang.Class<?> dclazz)
Set the dclazz.
|
void |
setDelegateMethodName(java.lang.String dmname)
Set the dmname.
|
void |
setExceptionTypes(java.lang.Class<?>[] exceptiontypes)
Set the exceptiontypes.
|
void |
setMethod(java.lang.reflect.Method method)
Set the method.
|
void |
setMethodMapper(jadex.commons.MethodInfo methodmapper)
Set the methodmapper.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setParameterMapper(jadex.extension.rs.publish.Value parametermapper)
Set the parametermapper.
|
void |
setParameterTypes(java.lang.Class<?>[] parametertypes)
Set the parametertypes.
|
void |
setPath(java.lang.String path)
Set the path.
|
void |
setProduced(java.util.List<javax.ws.rs.core.MediaType> produced)
Set the produced.
|
void |
setRestType(java.lang.Class<?> resttype)
Set the resttype.
|
void |
setResultMapper(jadex.extension.rs.publish.Value resultmapper)
Set the resultmapper.
|
void |
setReturnType(java.lang.reflect.Type returntype)
Set the returntype.
|
void |
setSignature(java.lang.String signature)
Set the signature.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.reflect.Method method
protected java.lang.String signature
protected java.lang.Class<?>[] parametertypes
protected java.lang.reflect.Type returntype
protected java.lang.Class<?>[] exceptiontypes
protected java.lang.String name
protected java.lang.String path
protected java.lang.Class<?> resttype
protected java.util.List<javax.ws.rs.core.MediaType> consumed
protected java.util.List<javax.ws.rs.core.MediaType> produced
protected jadex.commons.MethodInfo methodmapper
protected jadex.extension.rs.publish.Value parametermapper
protected boolean automapping
protected jadex.extension.rs.publish.Value resultmapper
protected java.lang.Class<?> dclazz
protected java.lang.String dmname
protected java.util.List<java.util.List<jadex.commons.Tuple2<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>>> parameterannos
public RestMethodInfo(java.lang.reflect.Method method, java.lang.String name, java.lang.String path, java.lang.Class<?> resttype, java.util.List<javax.ws.rs.core.MediaType> consumed, java.util.List<javax.ws.rs.core.MediaType> produced, jadex.commons.MethodInfo methodmapper, jadex.extension.rs.publish.Value parametermapper, boolean automapping, jadex.extension.rs.publish.Value resultmapper, java.lang.Class<?> dclazz, java.lang.String dmname)
public RestMethodInfo(java.lang.Class<?>[] parametertypes, java.lang.reflect.Type returntype, java.lang.Class<?>[] exceptiontypes, java.lang.String name, java.lang.String path, java.lang.Class<?> resttype, java.util.List<javax.ws.rs.core.MediaType> consumed, java.util.List<javax.ws.rs.core.MediaType> produced, jadex.commons.MethodInfo methodmapper, jadex.extension.rs.publish.Value parametermapper, boolean automapping, jadex.extension.rs.publish.Value resultmapper, java.lang.Class<?> dclazz, java.lang.String dmname)
public void setMethod(java.lang.reflect.Method method)
method
- The method to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.Class<?>[] getParameterTypes()
public void setParameterTypes(java.lang.Class<?>[] parametertypes)
parametertypes
- The parametertypes to set.public java.lang.reflect.Type getReturnType()
public void setReturnType(java.lang.reflect.Type returntype)
returntype
- The returntype to set.public java.lang.Class<?>[] getExceptionTypes()
public void setExceptionTypes(java.lang.Class<?>[] exceptiontypes)
exceptiontypes
- The exceptiontypes to set.public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path to set.public java.lang.Class<?> getRestType()
public void setRestType(java.lang.Class<?> resttype)
resttype
- The resttype to set.public java.util.List<javax.ws.rs.core.MediaType> getConsumed()
public void setConsumed(java.util.List<javax.ws.rs.core.MediaType> consumed)
consumed
- The consumed to set.public java.util.List<javax.ws.rs.core.MediaType> getProduced()
public void setProduced(java.util.List<javax.ws.rs.core.MediaType> produced)
produced
- The produced to set.public jadex.commons.MethodInfo getMethodMapper()
public void setMethodMapper(jadex.commons.MethodInfo methodmapper)
methodmapper
- The methodmapper to set.public jadex.extension.rs.publish.Value getParameterMapper()
public void setParameterMapper(jadex.extension.rs.publish.Value parametermapper)
parametermapper
- The parametermapper to set.public jadex.extension.rs.publish.Value getResultMapper()
public void setResultMapper(jadex.extension.rs.publish.Value resultmapper)
resultmapper
- The resultmapper to set.public java.lang.Class<?> getDelegateClazz()
public void setDelegateClazz(java.lang.Class<?> dclazz)
dclazz
- The dclazz to set.public java.lang.String getDelegateMethodName()
public void setDelegateMethodName(java.lang.String dmname)
dmname
- The dmname to set.public java.lang.String getSignature()
public void setSignature(java.lang.String signature)
signature
- The signature to set.public boolean isAutomapping()
public void setAutomapping(boolean automapping)
automapping
- The automapping to set.public static java.lang.String buildSignature(java.lang.String name, java.lang.Class<?>[] paramtypes)
name
- paramtypes
- public java.util.List<java.util.List<jadex.commons.Tuple2<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>>> getAnnotationInfo()
public java.lang.String toString()
toString
in class java.lang.Object