com.werxltd.jsonrpc
Class Request
java.lang.Object
com.werxltd.jsonrpc.Request
public class Request
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Request
public Request()
Request
public Request(java.lang.String request)
throws org.json.JSONException
- Throws:
org.json.JSONException
parseJSON
public boolean parseJSON(java.lang.String requestStr)
throws org.json.JSONException
- Throws:
org.json.JSONException
parseParams
public boolean parseParams(java.lang.String paramsStr)
getId
public java.lang.String getId()
setId
public void setId(java.lang.String id)
getMethod
public java.lang.String getMethod()
setMethod
public void setMethod(java.lang.String method)
hasParam
public boolean hasParam(java.lang.String param)
getParam
public java.lang.String getParam(java.lang.String param)
throws org.json.JSONException
- Throws:
org.json.JSONException
getParamAt
public java.lang.String getParamAt(int pos)
throws org.json.JSONException
- Throws:
org.json.JSONException
getParamObj
public org.json.JSONObject getParamObj()
getJSON
public org.json.JSONObject getJSON()
setParamCount
public void setParamCount(int param_count)
getParamCount
public int getParamCount()
setParamtype
public void setParamtype(Request.ParamType paramtype)
getParamtype
public Request.ParamType getParamtype()
Copyright © 2010. All Rights Reserved.