public class JSONClient extends Object
| Constructor and Description |
|---|
JSONClient() |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
sendRequest(String trpUrl,
org.json.JSONObject payload,
String operation) |
org.json.JSONObject |
sendSimpleStockQuoteRequest(String trpUrl,
String symbol)
Send simple get quote request in json format
|
org.json.JSONObject |
sendSimpleStockQuoteRequest(String trpUrl,
String symbol,
String operation) |
org.json.JSONObject |
sendUserDefineRequest(String addUrl,
String query)
Send user define request to ESB in json format.User should specify the query in JSON format
|
public org.json.JSONObject sendSimpleStockQuoteRequest(String trpUrl, String symbol) throws IOException, org.json.JSONException
trpUrl - symbol - IOExceptionorg.json.JSONExceptionpublic org.json.JSONObject sendSimpleStockQuoteRequest(String trpUrl, String symbol, String operation) throws IOException, org.json.JSONException
IOExceptionorg.json.JSONExceptionpublic org.json.JSONObject sendRequest(String trpUrl, org.json.JSONObject payload, String operation) throws IOException, org.json.JSONException
IOExceptionorg.json.JSONExceptionpublic org.json.JSONObject sendUserDefineRequest(String addUrl, String query) throws IOException, org.json.JSONException
addUrl - query - IOExceptionorg.json.JSONExceptionCopyright © 2015 WSO2 Inc. All rights reserved.