Package com.rabbitmq.tools.jsonrpc
Class ProcedureDescription
- java.lang.Object
-
- com.rabbitmq.tools.jsonrpc.ProcedureDescription
-
public class ProcedureDescription extends Object
Description of a single JSON-RPC procedure.
-
-
Constructor Summary
Constructors Constructor Description ProcedureDescription()
ProcedureDescription(Method m)
ProcedureDescription(Map<String,Object> pm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
arity()
Retrieves the parameter count for this procedureString
getHelp()
String
getJavaReturnType()
String
getName()
ParameterDescription[]
getParams()
String
getReturn()
Getter for return typeClass<?>
getReturnType()
String
getSummary()
Method
internal_getMethod()
Private API - used to get the reflected method object, for serversParameterDescription[]
internal_getParams()
Gets an array of parameter descriptions for all this procedure's parametersboolean
isIdempotent()
void
setHelp(String help)
void
setIdempotent(boolean idempotent)
void
setJavaReturnType(String javaReturnType)
void
setName(String name)
void
setReturn(String value)
Private API - used via reflection during parsing/loadingvoid
setSummary(String summary)
-
-
-
Method Detail
-
getReturn
public String getReturn()
Getter for return type
-
setReturn
public void setReturn(String value)
Private API - used via reflection during parsing/loading
-
internal_getMethod
public Method internal_getMethod()
Private API - used to get the reflected method object, for servers
-
getJavaReturnType
public String getJavaReturnType()
-
setJavaReturnType
public void setJavaReturnType(String javaReturnType)
-
getReturnType
public Class<?> getReturnType()
-
internal_getParams
public ParameterDescription[] internal_getParams()
Gets an array of parameter descriptions for all this procedure's parameters
-
arity
public int arity()
Retrieves the parameter count for this procedure
-
getParams
public ParameterDescription[] getParams()
-
getName
public String getName()
-
getSummary
public String getSummary()
-
getHelp
public String getHelp()
-
isIdempotent
public boolean isIdempotent()
-
setName
public void setName(String name)
-
setSummary
public void setSummary(String summary)
-
setHelp
public void setHelp(String help)
-
setIdempotent
public void setIdempotent(boolean idempotent)
-
-