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() |
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 availablepublic org.json.JSONArray getArrayResult()
throws org.json.JSONException
org.json.JSONException - if the JSONArray is nullCopyright © 2020 Franz Inc.. All rights reserved.