Package com.rabbitmq.tools.jsonrpc
Class ServiceDescription
- java.lang.Object
-
- com.rabbitmq.tools.jsonrpc.ServiceDescription
-
public class ServiceDescription extends Object
Description of a JSON-RPC service.
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_RPC_VERSION
-
Constructor Summary
Constructors Constructor Description ServiceDescription()
ServiceDescription(Class<?> klass)
ServiceDescription(Map<String,Object> rawServiceDescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHelp()
String
getId()
String
getName()
ProcedureDescription
getProcedure(String newname, int arity)
Looks up a single ProcedureDescription by name and arity.Collection<ProcedureDescription>
getProcs()
Gets a collection of allProcedureDescription
for this serviceString
getSummary()
String
getVersion()
void
setHelp(String help)
void
setId(String id)
void
setName(String name)
void
setProcs(Collection<Map<String,Object>> p)
Private API - used via reflection during parsing/loadingvoid
setSummary(String summary)
void
setVersion(String version)
-
-
-
Field Detail
-
JSON_RPC_VERSION
public static final String JSON_RPC_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProcs
public Collection<ProcedureDescription> getProcs()
Gets a collection of allProcedureDescription
for this service
-
setProcs
public void setProcs(Collection<Map<String,Object>> p)
Private API - used via reflection during parsing/loading
-
getProcedure
public ProcedureDescription getProcedure(String newname, int arity)
Looks up a single ProcedureDescription by name and arity.- Returns:
- non-null ProcedureDescription if a match is found
- Throws:
IllegalArgumentException
- if no match is found
-
getName
public String getName()
-
getId
public String getId()
-
getVersion
public String getVersion()
-
getSummary
public String getSummary()
-
getHelp
public String getHelp()
-
setName
public void setName(String name)
-
setId
public void setId(String id)
-
setVersion
public void setVersion(String version)
-
setSummary
public void setSummary(String summary)
-
setHelp
public void setHelp(String help)
-
-