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.

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
          An identifier established by the Client that MUST contain a String or a Number.
 String jsonrpc
          A String specifying the version of the JSON-RPC protocol.
 String method
          A String containing the name of the method to be invoked.
 Object params
          A Structured value that holds the parameter values to be used during the invocation of the method.
 
Fields inherited from class com.google.api.client.util.GenericData
unknownFields
 
Constructor Summary
JsonRpcRequest()
           
 
Method Summary
 
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, put, putAll, remove, set
 
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

public final String jsonrpc
A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".

See Also:
Constant Field Values

id

public Object id
An identifier established by the Client that MUST contain a String or a Number. If it is not included it is assumed to be a notification, and will not receive a response.


method

public String method
A String containing the name of the method to be invoked.


params

public Object params
A Structured value that holds the parameter values to be used during the invocation of the method. This member MAY be omitted.

Constructor Detail

JsonRpcRequest

public JsonRpcRequest()


Copyright © 2010-2011 Google. All Rights Reserved.