public class ApiResult
extends java.lang.Object
asArray() or asObject()
is called.| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
asArray()
Start the network request & return the response as a JSON Array.
|
org.json.JSONObject |
asObject()
Start the network request & return the response as a JSON Object.
|
void |
cancel()
Disconnect the request if it is in progress.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaders()
Get the Map of headers returned for the response.
|
public void cancel()
public org.json.JSONArray asArray()
throws ApiException
JSONArray object with the results of the API query.ApiException - Thrown in the case of any error(s). Check the inner exception for details.public org.json.JSONObject asObject()
throws ApiException
JSONObject object with the results of the API query.ApiException - Thrown in the case of any error(s). Check the inner exception for details.public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
throws java.lang.NullPointerException
java.lang.NullPointerException