org.directwebremoting.jsonrpc.io
Class JsonRpcResponse

java.lang.Object
  extended by org.directwebremoting.jsonrpc.io.JsonRpcResponse

public class JsonRpcResponse
extends java.lang.Object

A Container for a JSON-RPC response

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
JsonRpcResponse(java.lang.String version, StringWrapper id, java.lang.Object result)
          Create an Error from a request and the data to fulfill the request
 
Method Summary
 StringWrapper getId()
          A Request identifier that SHOULD be a JSON scalar (String, Number, True, False), but SHOULD normally not be Null [1].
 java.lang.String getJsonRpc()
           
 java.lang.Object getResult()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRpcResponse

public JsonRpcResponse(java.lang.String version,
                       StringWrapper id,
                       java.lang.Object result)
Create an Error from a request and the data to fulfill the request

Method Detail

getJsonRpc

public java.lang.String getJsonRpc()
Returns:
A String specifying the version of the JSON-RPC protocol.

getResult

public java.lang.Object getResult()
Returns:
The data that results from running a JSON-RPC request

getId

public StringWrapper getId()
A Request identifier that SHOULD be a JSON scalar (String, Number, True, False), but SHOULD normally not be Null [1]. If omitted, the Request is a Notification.


Copyright 2008