Class JsonArrayRequest

  extended by<T>
      extended by<org.json.JSONArray>
          extended by
All Implemented Interfaces:

public class JsonArrayRequest
extends JsonRequest<org.json.JSONArray>

A request for retrieving a JSONArray response body at a given URL.

Nested Class Summary
Nested classes/interfaces inherited from class
Request.Method, Request.Priority
Constructor Summary
JsonArrayRequest(java.lang.String url, Listener<org.json.JSONArray> listener)
          Creates a new request.
Method Summary
protected  Response<org.json.JSONArray> parseNetworkResponse(NetworkResponse response)
          Subclasses must implement this to parse the raw network response and return an appropriate response type.
Methods inherited from class
getBody, getBodyContentType
Methods inherited from class
addHeader, addMarker, cancel, compareTo, deliverCancel, deliverDownloadProgress, deliverError, deliverFinish, deliverNetworking, deliverPreExecute, deliverRetry, deliverSuccess, deliverUsedCache, finish, getCacheExpireTime, getCacheKey, getHeaders, getMethod, getParams, getParamsEncoding, getPriority, getRetryPolicy, getSequence, getTag, getTimeoutMs, getUrl, handleResponse, hasHadResponseDelivered, isCanceled, isForceUpdate, markDelivered, parseNetworkError, perform, prepare, removeHeader, setCacheExpireTime, setForceUpdate, setListener, setRequestQueue, setRetryPolicy, setSequence, setTag, shouldCache, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public JsonArrayRequest(java.lang.String url,
                        Listener<org.json.JSONArray> listener)
Creates a new request.

url - URL to fetch the JSON from
listener - Listener to receive the JSON response or error message
Method Detail


protected Response<org.json.JSONArray> parseNetworkResponse(NetworkResponse response)
Description copied from class: Request
Subclasses must implement this to parse the raw network response and return an appropriate response type. This method will be called from a worker thread. The response will not be delivered if you return null.

Specified by:
parseNetworkResponse in class JsonRequest<org.json.JSONArray>
response - Response from the network
The parsed response, or null in the case of an error