|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.rpc2.JsonRpcRequest
public class JsonRpcRequest
JSON-RPC 2.0 request object.
Implementation is not thread-safe.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData |
---|
GenericData.Flags |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
JsonRpcRequest()
|
Method Summary | |
---|---|
Object |
getId()
Returns the identifier established by the client that must be a string or a number or null for a notification and therefore not expect to receive a response. |
String |
getMethod()
Returns the name of the method to be invoked. |
Object |
getParameters()
Returns the structured value that holds the parameter values to be used during the invocation of the method or null for none. |
String |
getVersion()
Returns the version of the JSON-RPC protocol which is "2.0" . |
void |
setId(Object id)
Sets the identifier established by the client that must be a string or a number or null
for a notification and therefore not expect to receive a response. |
void |
setMethod(String method)
Sets the name of the method to be invoked. |
void |
setParameters(Object parameters)
Sets the structured value that holds the parameter values to be used during the invocation of the method or null for none. |
Methods inherited from class com.google.api.client.util.GenericData |
---|
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys |
Methods inherited from class java.util.AbstractMap |
---|
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JsonRpcRequest()
Method Detail |
---|
public String getVersion()
"2.0"
.
public Object getId()
null
for a notification and therefore not expect to receive a response.
public void setId(Object id)
null
for a notification and therefore not expect to receive a response.
public String getMethod()
public void setMethod(String method)
public Object getParameters()
null
for none.
public void setParameters(Object parameters)
null
for none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |