Package jadex.extension.rs.publish
Class RestMethodInfo
- java.lang.Object
- 
- jadex.extension.rs.publish.RestMethodInfo
 
- 
 public class RestMethodInfo extends java.lang.ObjectInfo struct for building a rest method.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanautomappingprotected java.util.List<javax.ws.rs.core.MediaType>consumedThe consumed media types.protected java.lang.Class<?>dclazzDelegation class.protected java.lang.StringdmnameThe delegation (prototype) method.protected java.lang.Class<?>[]exceptiontypesThe return type.protected java.lang.reflect.MethodmethodThe original method.protected MethodInfomethodmapperThe original service method.protected java.lang.StringnameThe method name that represents the path.protected java.util.List<java.util.List<Tuple2<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>>>parameterannosThe parameter annotations.protected ValueparametermapperThe parameter mapper info.protected java.lang.Class<?>[]parametertypesThe parameter types.protected java.lang.StringpathThe method path.protected java.util.List<javax.ws.rs.core.MediaType>producedThe produced media types.protected java.lang.Class<?>resttypeThe rest method type.protected ValueresultmapperThe result mapper info.protected java.lang.reflect.TypereturntypeThe return type.protected java.lang.StringsignatureThe signature.
 - 
Constructor SummaryConstructors Constructor 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, MethodInfo methodmapper, Value parametermapper, boolean automapping, 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, MethodInfo methodmapper, Value parametermapper, boolean automapping, Value resultmapper, java.lang.Class<?> dclazz, java.lang.String dmname)Create a new rest method info.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringbuildSignature(java.lang.String name, java.lang.Class<?>[] paramtypes)Get the signature.java.util.List<java.util.List<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.StringgetDelegateMethodName()Get the dmname.java.lang.Class<?>[]getExceptionTypes()Get the exception types.MethodInfogetMethodMapper()Get the methodmapper.java.lang.StringgetName()Get the name.ValuegetParameterMapper()Get the parametermapper.java.lang.Class<?>[]getParameterTypes()Get the parameter types.java.lang.StringgetPath()Get the path.java.util.List<javax.ws.rs.core.MediaType>getProduced()Get the produced.java.lang.Class<?>getRestType()Get the resttype.ValuegetResultMapper()Get the resultmapper.java.lang.reflect.TypegetReturnType()Get the return type.java.lang.StringgetSignature()Get the method signature.booleanisAutomapping()Get the automapping.voidsetAutomapping(boolean automapping)Set the automapping.voidsetConsumed(java.util.List<javax.ws.rs.core.MediaType> consumed)Set the consumed.voidsetDelegateClazz(java.lang.Class<?> dclazz)Set the dclazz.voidsetDelegateMethodName(java.lang.String dmname)Set the dmname.voidsetExceptionTypes(java.lang.Class<?>[] exceptiontypes)Set the exceptiontypes.voidsetMethod(java.lang.reflect.Method method)Set the method.voidsetMethodMapper(MethodInfo methodmapper)Set the methodmapper.voidsetName(java.lang.String name)Set the name.voidsetParameterMapper(Value parametermapper)Set the parametermapper.voidsetParameterTypes(java.lang.Class<?>[] parametertypes)Set the parametertypes.voidsetPath(java.lang.String path)Set the path.voidsetProduced(java.util.List<javax.ws.rs.core.MediaType> produced)Set the produced.voidsetRestType(java.lang.Class<?> resttype)Set the resttype.voidsetResultMapper(Value resultmapper)Set the resultmapper.voidsetReturnType(java.lang.reflect.Type returntype)Set the returntype.voidsetSignature(java.lang.String signature)Set the signature.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
methodprotected java.lang.reflect.Method method The original method.
 - 
signatureprotected java.lang.String signature The signature.
 - 
parametertypesprotected java.lang.Class<?>[] parametertypes The parameter types.
 - 
returntypeprotected java.lang.reflect.Type returntype The return type.
 - 
exceptiontypesprotected java.lang.Class<?>[] exceptiontypes The return type.
 - 
nameprotected java.lang.String name The method name that represents the path.
 - 
pathprotected java.lang.String path The method path.
 - 
resttypeprotected java.lang.Class<?> resttype The rest method type.
 - 
consumedprotected java.util.List<javax.ws.rs.core.MediaType> consumed The consumed media types.
 - 
producedprotected java.util.List<javax.ws.rs.core.MediaType> produced The produced media types.
 - 
methodmapperprotected MethodInfo methodmapper The original service method.
 - 
parametermapperprotected Value parametermapper The parameter mapper info.
 - 
automappingprotected boolean automapping 
 - 
resultmapperprotected Value resultmapper The result mapper info.
 - 
dclazzprotected java.lang.Class<?> dclazz Delegation class.
 - 
dmnameprotected java.lang.String dmname The delegation (prototype) method.
 - 
parameterannosprotected java.util.List<java.util.List<Tuple2<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>>> parameterannos The parameter annotations.
 
- 
 - 
Constructor Detail- 
RestMethodInfopublic 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, MethodInfo methodmapper, Value parametermapper, boolean automapping, Value resultmapper, java.lang.Class<?> dclazz, java.lang.String dmname)Create a new rest method info.
 - 
RestMethodInfopublic 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, MethodInfo methodmapper, Value parametermapper, boolean automapping, Value resultmapper, java.lang.Class<?> dclazz, java.lang.String dmname)Create a new rest method info.
 
- 
 - 
Method Detail- 
setMethodpublic void setMethod(java.lang.reflect.Method method) Set the method.- Parameters:
- method- The method to set.
 
 - 
getNamepublic java.lang.String getName() Get the name.- Returns:
- the name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name to set.
 
 - 
getParameterTypespublic java.lang.Class<?>[] getParameterTypes() Get the parameter types.
 - 
setParameterTypespublic void setParameterTypes(java.lang.Class<?>[] parametertypes) Set the parametertypes.- Parameters:
- parametertypes- The parametertypes to set.
 
 - 
getReturnTypepublic java.lang.reflect.Type getReturnType() Get the return type.
 - 
setReturnTypepublic void setReturnType(java.lang.reflect.Type returntype) Set the returntype.- Parameters:
- returntype- The returntype to set.
 
 - 
getExceptionTypespublic java.lang.Class<?>[] getExceptionTypes() Get the exception types.
 - 
setExceptionTypespublic void setExceptionTypes(java.lang.Class<?>[] exceptiontypes) Set the exceptiontypes.- Parameters:
- exceptiontypes- The exceptiontypes to set.
 
 - 
getPathpublic java.lang.String getPath() Get the path.- Returns:
- the path.
 
 - 
setPathpublic void setPath(java.lang.String path) Set the path.- Parameters:
- path- The path to set.
 
 - 
getRestTypepublic java.lang.Class<?> getRestType() Get the resttype.- Returns:
- the resttype.
 
 - 
setRestTypepublic void setRestType(java.lang.Class<?> resttype) Set the resttype.- Parameters:
- resttype- The resttype to set.
 
 - 
getConsumedpublic java.util.List<javax.ws.rs.core.MediaType> getConsumed() Get the consumed.- Returns:
- the consumed.
 
 - 
setConsumedpublic void setConsumed(java.util.List<javax.ws.rs.core.MediaType> consumed) Set the consumed.- Parameters:
- consumed- The consumed to set.
 
 - 
getProducedpublic java.util.List<javax.ws.rs.core.MediaType> getProduced() Get the produced.- Returns:
- the produced.
 
 - 
setProducedpublic void setProduced(java.util.List<javax.ws.rs.core.MediaType> produced) Set the produced.- Parameters:
- produced- The produced to set.
 
 - 
getMethodMapperpublic MethodInfo getMethodMapper() Get the methodmapper.- Returns:
- the methodmapper.
 
 - 
setMethodMapperpublic void setMethodMapper(MethodInfo methodmapper) Set the methodmapper.- Parameters:
- methodmapper- The methodmapper to set.
 
 - 
getParameterMapperpublic Value getParameterMapper() Get the parametermapper.- Returns:
- the parametermapper.
 
 - 
setParameterMapperpublic void setParameterMapper(Value parametermapper) Set the parametermapper.- Parameters:
- parametermapper- The parametermapper to set.
 
 - 
getResultMapperpublic Value getResultMapper() Get the resultmapper.- Returns:
- the resultmapper.
 
 - 
setResultMapperpublic void setResultMapper(Value resultmapper) Set the resultmapper.- Parameters:
- resultmapper- The resultmapper to set.
 
 - 
getDelegateClazzpublic java.lang.Class<?> getDelegateClazz() Get the dclazz.- Returns:
- the dclazz.
 
 - 
setDelegateClazzpublic void setDelegateClazz(java.lang.Class<?> dclazz) Set the dclazz.- Parameters:
- dclazz- The dclazz to set.
 
 - 
getDelegateMethodNamepublic java.lang.String getDelegateMethodName() Get the dmname.- Returns:
- the dmname.
 
 - 
setDelegateMethodNamepublic void setDelegateMethodName(java.lang.String dmname) Set the dmname.- Parameters:
- dmname- The dmname to set.
 
 - 
getSignaturepublic java.lang.String getSignature() Get the method signature.
 - 
setSignaturepublic void setSignature(java.lang.String signature) Set the signature.- Parameters:
- signature- The signature to set.
 
 - 
isAutomappingpublic boolean isAutomapping() Get the automapping.- Returns:
- The automapping.
 
 - 
setAutomappingpublic void setAutomapping(boolean automapping) Set the automapping.- Parameters:
- automapping- The automapping to set.
 
 - 
buildSignaturepublic static java.lang.String buildSignature(java.lang.String name, java.lang.Class<?>[] paramtypes)Get the signature.- Parameters:
- name-
- paramtypes-
- Returns:
 
 - 
getAnnotationInfopublic java.util.List<java.util.List<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. A tuple saves the class name and the parameter values as hashmap.
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-