public class JsonArrayRequest
extends com.android.volley.toolbox.JsonRequest<org.json.JSONArray>
JSONArray
response body at a given URL.
Extentend new contrsuctor for parsing JSONObject as parameterConstructor and Description |
---|
JsonArrayRequest(int method,
java.lang.String url,
org.json.JSONArray jsonRequest,
com.android.volley.Response.Listener<org.json.JSONArray> listener,
com.android.volley.Response.ErrorListener errorListener)
Creates a new request.
|
JsonArrayRequest(int method,
java.lang.String url,
org.json.JSONObject jsonRequest,
com.android.volley.Response.Listener<org.json.JSONArray> listener,
com.android.volley.Response.ErrorListener errorListener)
Creates a new request.
|
JsonArrayRequest(java.lang.String url,
com.android.volley.Response.Listener<org.json.JSONArray> listener,
com.android.volley.Response.ErrorListener errorListener)
Creates a new request.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
protected com.android.volley.Response<org.json.JSONArray> |
parseNetworkResponse(com.android.volley.NetworkResponse response) |
deliverResponse, getBody, getBodyContentType, getPostBody, getPostBodyContentType
addMarker, compareTo, deliverError, getCacheEntry, getCacheKey, getErrorListener, getHeaders, getMethod, getParams, getParamsEncoding, getPostParams, getPostParamsEncoding, getPriority, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, markDelivered, parseNetworkError, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toString
public JsonArrayRequest(java.lang.String url, com.android.volley.Response.Listener<org.json.JSONArray> listener, com.android.volley.Response.ErrorListener errorListener)
url
- URL to fetch the JSON fromlistener
- Listener to receive the JSON responseerrorListener
- Error listener, or null to ignore errors.public JsonArrayRequest(int method, java.lang.String url, org.json.JSONArray jsonRequest, com.android.volley.Response.Listener<org.json.JSONArray> listener, com.android.volley.Response.ErrorListener errorListener)
method
- the HTTP method to useurl
- URL to fetch the JSON fromjsonRequest
- 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 responseerrorListener
- Error listener, or null to ignore errors.public JsonArrayRequest(int method, java.lang.String url, org.json.JSONObject jsonRequest, com.android.volley.Response.Listener<org.json.JSONArray> listener, com.android.volley.Response.ErrorListener errorListener)
method
- the HTTP method to useurl
- URL to fetch the JSON fromjsonRequest
- A JSONObject
to post with the request. Null is allowed and
indicates no parameters will be posted along with request.listener
- Listener to receive the JSON responseerrorListener
- Error listener, or null to ignore errors.public void cancel()
cancel
in class com.android.volley.Request<org.json.JSONArray>
protected com.android.volley.Response<org.json.JSONArray> parseNetworkResponse(com.android.volley.NetworkResponse response)
parseNetworkResponse
in class com.android.volley.toolbox.JsonRequest<org.json.JSONArray>