public class JsonArrayRequest extends JsonRequest<org.json.JSONArray>
JSONArray response body at a given URL.Request.Method, Request.Priority| Constructor and Description |
|---|
JsonArrayRequest(java.lang.String url,
Response.Listener<org.json.JSONArray> listener,
Response.ErrorListener errorListener)
Creates a new request.
|
| Modifier and Type | Method and Description |
|---|---|
protected Response<org.json.JSONArray> |
parseNetworkResponse(NetworkResponse response)
Subclasses must implement this to parse the raw network response
and return an appropriate response type.
|
deliverResponse, getBody, getBodyContentType, getPostBody, getPostBodyContentTypeaddMarker, cancel, compareTo, deliverError, getCacheEntry, getCacheKey, getHeaders, getMethod, getParams, getParamsEncoding, getPostParams, getPostParamsEncoding, getPriority, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, markDelivered, parseNetworkError, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toStringpublic JsonArrayRequest(java.lang.String url,
Response.Listener<org.json.JSONArray> listener,
Response.ErrorListener errorListener)
url - URL to fetch the JSON fromlistener - Listener to receive the JSON responseerrorListener - Error listener, or null to ignore errors.protected Response<org.json.JSONArray> parseNetworkResponse(NetworkResponse response)
RequestparseNetworkResponse in class JsonRequest<org.json.JSONArray>response - Response from the network