public class AGJSONHandler extends AGResponseHandler
| Constructor and Description |
|---|
AGJSONHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
getArrayResult()
Fetch the JSONArray parsed from the response.
|
org.json.JSONObject |
getResult()
Fetch the JSONObject parsed from the response.
|
void |
handleResponse(org.apache.commons.httpclient.HttpMethod method)
Parse http response as a JSON object.
|
getRequestMIMEType, releaseConnectionpublic void handleResponse(org.apache.commons.httpclient.HttpMethod method)
throws IOException,
AGHttpException
handleResponse in class AGResponseHandlerIOExceptionAGHttpExceptionpublic org.json.JSONObject getResult()
throws org.json.JSONException
org.json.JSONException - if a JSONArray is instead available.public org.json.JSONArray getArrayResult()
throws org.json.JSONException
org.json.JSONExceptionCopyright © 2017 Franz Inc.. All rights reserved.