com.almende.eve.rpc.jsonrpc
Class JSONRequest
java.lang.Object
com.almende.eve.rpc.jsonrpc.JSONRequest
- All Implemented Interfaces:
- Serializable
public class JSONRequest
- extends Object
- implements Serializable
- See Also:
- Serialized Form
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)
|
req
protected com.fasterxml.jackson.databind.node.ObjectNode req
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)
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.