public class RestMethodInfo extends Object
Constructor and Description |
---|
RestMethodInfo(Class<?>[] parametertypes,
Type returntype,
Class<?>[] exceptiontypes,
String name,
String path,
Class<?> resttype,
List<javax.ws.rs.core.MediaType> consumed,
List<javax.ws.rs.core.MediaType> produced,
MethodInfo methodmapper,
Value parametermapper,
Value resultmapper,
Class<?> dclazz,
String dmname)
Create a new rest method info.
|
RestMethodInfo(Method method,
String name,
String path,
Class<?> resttype,
List<javax.ws.rs.core.MediaType> consumed,
List<javax.ws.rs.core.MediaType> produced,
MethodInfo methodmapper,
Value parametermapper,
Value resultmapper,
Class<?> dclazz,
String dmname)
Create a new rest method info.
|
Modifier and Type | Method and Description |
---|---|
List<javax.ws.rs.core.MediaType> |
getConsumed()
Get the consumed.
|
Class<?> |
getDelegateClazz()
Get the dclazz.
|
String |
getDelegateMethodName()
Get the dmname.
|
Class<?>[] |
getExceptionTypes()
Get the exception types.
|
MethodInfo |
getMethodMapper()
Get the methodmapper.
|
String |
getName()
Get the name.
|
Value |
getParameterMapper()
Get the parametermapper.
|
Class<?>[] |
getParameterTypes()
Get the parameter types.
|
String |
getPath()
Get the path.
|
List<javax.ws.rs.core.MediaType> |
getProduced()
Get the produced.
|
Class<?> |
getRestType()
Get the resttype.
|
Value |
getResultMapper()
Get the resultmapper.
|
Type |
getReturnType()
Get the return type.
|
void |
setConsumed(List<javax.ws.rs.core.MediaType> consumed)
Set the consumed.
|
void |
setDelegateClazz(Class<?> dclazz)
Set the dclazz.
|
void |
setDelegateMethodName(String dmname)
Set the dmname.
|
void |
setExceptionTypes(Class<?>[] exceptiontypes)
Set the exceptiontypes.
|
void |
setMethod(Method method)
Set the method.
|
void |
setMethodMapper(MethodInfo methodmapper)
Set the methodmapper.
|
void |
setName(String name)
Set the name.
|
void |
setParameterMapper(Value parametermapper)
Set the parametermapper.
|
void |
setParameterTypes(Class<?>[] parametertypes)
Set the parametertypes.
|
void |
setPath(String path)
Set the path.
|
void |
setProduced(List<javax.ws.rs.core.MediaType> produced)
Set the produced.
|
void |
setRestType(Class<?> resttype)
Set the resttype.
|
void |
setResultMapper(Value resultmapper)
Set the resultmapper.
|
void |
setReturnType(Type returntype)
Set the returntype.
|
String |
toString()
Get the string representation.
|
public RestMethodInfo(Method method, String name, String path, Class<?> resttype, List<javax.ws.rs.core.MediaType> consumed, List<javax.ws.rs.core.MediaType> produced, MethodInfo methodmapper, Value parametermapper, Value resultmapper, Class<?> dclazz, String dmname)
public RestMethodInfo(Class<?>[] parametertypes, Type returntype, Class<?>[] exceptiontypes, String name, String path, Class<?> resttype, List<javax.ws.rs.core.MediaType> consumed, List<javax.ws.rs.core.MediaType> produced, MethodInfo methodmapper, Value parametermapper, Value resultmapper, Class<?> dclazz, String dmname)
public void setMethod(Method method)
method
- The method to set.public String getName()
public void setName(String name)
name
- The name to set.public Class<?>[] getParameterTypes()
public void setParameterTypes(Class<?>[] parametertypes)
parametertypes
- The parametertypes to set.public Type getReturnType()
public void setReturnType(Type returntype)
returntype
- The returntype to set.public Class<?>[] getExceptionTypes()
public void setExceptionTypes(Class<?>[] exceptiontypes)
exceptiontypes
- The exceptiontypes to set.public String getPath()
public void setPath(String path)
path
- The path to set.public Class<?> getRestType()
public void setRestType(Class<?> resttype)
resttype
- The resttype to set.public List<javax.ws.rs.core.MediaType> getConsumed()
public void setConsumed(List<javax.ws.rs.core.MediaType> consumed)
consumed
- The consumed to set.public List<javax.ws.rs.core.MediaType> getProduced()
public void setProduced(List<javax.ws.rs.core.MediaType> produced)
produced
- The produced to set.public MethodInfo getMethodMapper()
public void setMethodMapper(MethodInfo methodmapper)
methodmapper
- The methodmapper to set.public Value getParameterMapper()
public void setParameterMapper(Value parametermapper)
parametermapper
- The parametermapper to set.public Value getResultMapper()
public void setResultMapper(Value resultmapper)
resultmapper
- The resultmapper to set.public Class<?> getDelegateClazz()
public void setDelegateClazz(Class<?> dclazz)
dclazz
- The dclazz to set.public String getDelegateMethodName()
public void setDelegateMethodName(String dmname)
dmname
- The dmname to set.Copyright © 2012. All Rights Reserved.