类 JsonArrayRequest

java.lang.Object
com.android.volley.Request<T>
com.android.volley.toolbox.JsonRequest<org.json.JSONArray>
com.android.volley.toolbox.JsonArrayRequest
所有已实现的接口:
Comparable<Request<org.json.JSONArray>>

public class JsonArrayRequest extends JsonRequest<org.json.JSONArray>
A request for retrieving a JSONArray response body at a given URL.
  • 构造器详细资料

    • JsonArrayRequest

      public JsonArrayRequest(String url, Response.Listener<org.json.JSONArray> listener, Response.ErrorListener errorListener)
      Creates a new request.
      参数:
      url - URL to fetch the JSON from
      listener - Listener to receive the JSON response
      errorListener - Error listener, or null to ignore errors.
    • JsonArrayRequest

      public JsonArrayRequest(int method, String url, org.json.JSONArray jsonRequest, Response.Listener<org.json.JSONArray> listener, Response.ErrorListener errorListener)
      Creates a new request.
      参数:
      method - the HTTP method to use
      url - URL to fetch the JSON from
      jsonRequest - A JSONArray to post with the request. Null is allowed and indicates no parameters will be posted along with request.
      listener - Listener to receive the JSON response
      errorListener - Error listener, or null to ignore errors.
  • 方法详细资料

    • parseNetworkResponse

      protected Response<org.json.JSONArray> parseNetworkResponse(NetworkResponse response)
      从类复制的说明: 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.
      指定者:
      parseNetworkResponse 在类中 JsonRequest<org.json.JSONArray>
      参数:
      response - Response from the network
      返回:
      The parsed response, or null in the case of an error