com.almende.eve.rpc.jsonrpc
Class JSONRequest

java.lang.Object
  extended by com.almende.eve.rpc.jsonrpc.JSONRequest
All Implemented Interfaces:
Serializable

public class JSONRequest
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class JSONRequest.VERSION
           
 
Field Summary
protected  com.fasterxml.jackson.databind.node.ObjectNode req
           
 
Constructor Summary
JSONRequest()
           
JSONRequest(com.fasterxml.jackson.databind.node.ObjectNode request)
           
JSONRequest(Object id, String method, com.fasterxml.jackson.databind.node.ObjectNode params)
           
JSONRequest(Object id, String method, com.fasterxml.jackson.databind.node.ObjectNode params, String callbackUrl, String callbackMethod)
           
JSONRequest(String json)
           
JSONRequest(String method, com.fasterxml.jackson.databind.node.ObjectNode params)
           
JSONRequest(String method, com.fasterxml.jackson.databind.node.ObjectNode params, String callbackUrl, String callbackMethod)
           
 
Method Summary
 String getCallbackMethod()
           
 String getCallbackUrl()
           
 Object getId()
           
 String getMethod()
           
 com.fasterxml.jackson.databind.node.ObjectNode getObjectNode()
           
 Object getParam(String name)
           
 com.fasterxml.jackson.databind.node.ObjectNode getParams()
           
 boolean hasCallback()
           
 Object hasParam(String name)
           
 void init(com.fasterxml.jackson.databind.node.ObjectNode request)
           
 void putParam(String name, Object value)
           
 void setCallback(String url, String method)
           
 void setId(Object id)
           
 void setMethod(String method)
           
 void setParams(com.fasterxml.jackson.databind.node.ObjectNode params)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

req

protected com.fasterxml.jackson.databind.node.ObjectNode req
Constructor Detail

JSONRequest

public JSONRequest()

JSONRequest

public JSONRequest(String json)
            throws JSONRPCException,
                   com.fasterxml.jackson.core.JsonParseException,
                   com.fasterxml.jackson.databind.JsonMappingException,
                   IOException
Throws:
JSONRPCException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException

JSONRequest

public JSONRequest(com.fasterxml.jackson.databind.node.ObjectNode request)
            throws JSONRPCException
Throws:
JSONRPCException

JSONRequest

public JSONRequest(String method,
                   com.fasterxml.jackson.databind.node.ObjectNode params)

JSONRequest

public JSONRequest(Object id,
                   String method,
                   com.fasterxml.jackson.databind.node.ObjectNode params)

JSONRequest

public JSONRequest(String method,
                   com.fasterxml.jackson.databind.node.ObjectNode params,
                   String callbackUrl,
                   String callbackMethod)

JSONRequest

public JSONRequest(Object id,
                   String method,
                   com.fasterxml.jackson.databind.node.ObjectNode params,
                   String callbackUrl,
                   String callbackMethod)
Method Detail

init

public void init(com.fasterxml.jackson.databind.node.ObjectNode request)
          throws JSONRPCException
Throws:
JSONRPCException

setId

public void setId(Object id)

getId

public Object getId()

setMethod

public void setMethod(String method)

getMethod

public String getMethod()

setParams

public void setParams(com.fasterxml.jackson.databind.node.ObjectNode params)

getParams

public com.fasterxml.jackson.databind.node.ObjectNode getParams()

putParam

public void putParam(String name,
                     Object value)

getParam

public Object getParam(String name)

hasParam

public Object hasParam(String name)

setCallback

public void setCallback(String url,
                        String method)

getCallbackUrl

public String getCallbackUrl()

getCallbackMethod

public String getCallbackMethod()

hasCallback

public boolean hasCallback()

getObjectNode

public com.fasterxml.jackson.databind.node.ObjectNode getObjectNode()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Almende BV. All Rights Reserved.