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, releaseConnection
public void handleResponse(org.apache.commons.httpclient.HttpMethod method) throws IOException, AGHttpException
handleResponse
in class AGResponseHandler
IOException
AGHttpException
public 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.JSONException
Copyright © 2017 Franz Inc.. All rights reserved.