com.google.api.client.json.rpc2
Class JsonRpcRequest

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.rpc2.JsonRpcRequest
All Implemented Interfaces:
Cloneable, Map<String,Object>

public class JsonRpcRequest
extends GenericData

JSON-RPC 2.0 request object.

Implementation is not thread-safe.

Since:
1.0
Author:
Yaniv Inbar

Nested Class Summary
 
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>
 
Field Summary
 Object id
          Deprecated. (scheduled to be made private in 1.6) Use getId() or setId(Object)
 String jsonrpc
          Deprecated. (scheduled to be made private in 1.6) Use getVersion()
 String method
          Deprecated. (scheduled to be made private in 1.6) Use getMethod() or setMethod(String)
 Object params
          Deprecated. (scheduled to be made private in 1.6) Use getParameters() or setParameters(Object)
 
Fields inherited from class com.google.api.client.util.GenericData
unknownFields
 
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, 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
 

Field Detail

jsonrpc

@Deprecated
public final String jsonrpc
Deprecated. (scheduled to be made private in 1.6) Use getVersion()
Version of the JSON-RPC protocol which is "2.0".

See Also:
Constant Field Values

id

@Deprecated
public Object id
Deprecated. (scheduled to be made private in 1.6) Use getId() or setId(Object)
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.


method

@Deprecated
public String method
Deprecated. (scheduled to be made private in 1.6) Use getMethod() or setMethod(String)
Name of the method to be invoked.


params

@Deprecated
public Object params
Deprecated. (scheduled to be made private in 1.6) Use getParameters() or setParameters(Object)
Structured value that holds the parameter values to be used during the invocation of the method or null for none.

Constructor Detail

JsonRpcRequest

public JsonRpcRequest()
Method Detail

getVersion

public String getVersion()
Returns the version of the JSON-RPC protocol which is "2.0".

Since:
1.5

getId

public 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.

Since:
1.5

setId

public 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.

Since:
1.5

getMethod

public String getMethod()
Returns the name of the method to be invoked.

Since:
1.5

setMethod

public void setMethod(String method)
Sets the name of the method to be invoked.

Since:
1.5

getParameters

public Object getParameters()
Returns the structured value that holds the parameter values to be used during the invocation of the method or null for none.

Since:
1.5

setParameters

public 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.

Since:
1.5


Copyright © 2011 Google. All Rights Reserved.