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.http.HttpResponse httpResponse,
org.apache.http.client.methods.HttpUriRequest httpUriRequest)
Parse http response as a JSON object.
|
getRequestMIMEType, releaseConnection
public void handleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) 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 availablepublic org.json.JSONArray getArrayResult() throws org.json.JSONException
org.json.JSONException
- if the JSONArray is nullCopyright © 2024 Franz Inc.. All rights reserved.