| Package | Description |
|---|---|
| com.android.volley | |
| com.android.volley.toolbox |
| Modifier and Type | Method and Description |
|---|---|
static <T> Response<T> |
Response.error(VolleyError error)
Returns a failed response containing the given error code and an optional
localized message displayed to the user.
|
protected abstract Response<T> |
Request.parseNetworkResponse(NetworkResponse response)
Subclasses must implement this to parse the raw network response
and return an appropriate response type.
|
static <T> Response<T> |
Response.success(T result,
Cache.Entry cacheEntry)
Returns a successful response containing the parsed result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ResponseDelivery.postResponse(Request<?> request,
Response<?> response)
Parses a response from the network or cache and delivers it.
|
void |
ExecutorDelivery.postResponse(Request<?> request,
Response<?> response) |
void |
ResponseDelivery.postResponse(Request<?> request,
Response<?> response,
Runnable runnable)
Parses a response from the network or cache and delivers it.
|
void |
ExecutorDelivery.postResponse(Request<?> request,
Response<?> response,
Runnable runnable) |
| Modifier and Type | Method and Description |
|---|---|
protected Response<String> |
StringRequest.parseNetworkResponse(NetworkResponse response) |
protected abstract Response<T> |
JsonRequest.parseNetworkResponse(NetworkResponse response) |
protected Response<org.json.JSONObject> |
JsonObjectRequest.parseNetworkResponse(NetworkResponse response) |
protected Response<org.json.JSONArray> |
JsonArrayRequest.parseNetworkResponse(NetworkResponse response) |
protected Response<android.graphics.Bitmap> |
ImageRequest.parseNetworkResponse(NetworkResponse response) |
protected Response<Object> |
ClearCacheRequest.parseNetworkResponse(NetworkResponse response) |
Copyright © 2015. All rights reserved.