| Package | Description |
|---|---|
| com.android.volley | |
| com.android.volley.toolbox |
| Modifier and Type | Method and Description |
|---|---|
<T> Request<T> |
RequestQueue.add(Request<T> request)
Adds a Request to the dispatch queue.
|
Request<?> |
Request.setCacheEntry(Cache.Entry entry)
Annotates this request with an entry retrieved for it from cache.
|
Request<?> |
Request.setRequestQueue(RequestQueue requestQueue)
Associates this request with the given queue.
|
Request<?> |
Request.setRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy for this request.
|
Request<?> |
Request.setSequence(int sequence)
Sets the sequence number of this request.
|
Request<?> |
Request.setShouldCache(boolean shouldCache)
Set whether or not responses to this request should be cached.
|
Request<?> |
Request.setTag(Object tag)
Set a tag on this request.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Request<T> |
RequestQueue.add(Request<T> request)
Adds a Request to the dispatch queue.
|
boolean |
RequestQueue.RequestFilter.apply(Request<?> request) |
int |
Request.compareTo(Request<T> other)
Our comparator sorts from high to low priority, and secondarily by
sequence number to provide FIFO ordering.
|
NetworkResponse |
Network.performRequest(Request<?> request)
Performs the specified request.
|
void |
ResponseDelivery.postError(Request<?> request,
VolleyError error)
Posts an error for the given request.
|
void |
ExecutorDelivery.postError(Request<?> request,
VolleyError error) |
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) |
| Constructor and Description |
|---|
CacheDispatcher(BlockingQueue<Request<?>> cacheQueue,
BlockingQueue<Request<?>> networkQueue,
Cache cache,
ResponseDelivery delivery)
Creates a new cache triage dispatcher thread.
|
CacheDispatcher(BlockingQueue<Request<?>> cacheQueue,
BlockingQueue<Request<?>> networkQueue,
Cache cache,
ResponseDelivery delivery)
Creates a new cache triage dispatcher thread.
|
NetworkDispatcher(BlockingQueue<Request<?>> queue,
Network network,
Cache cache,
ResponseDelivery delivery)
Creates a new network dispatcher thread.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClearCacheRequest
A synthetic request used for clearing the cache.
|
class |
ImageRequest
A canned request for getting an image at a given URL and calling
back with a decoded Bitmap.
|
class |
JsonArrayRequest
A request for retrieving a
JSONArray response body at a given URL. |
class |
JsonObjectRequest
A request for retrieving a
JSONObject response body at a given URL, allowing for an
optional JSONObject to be passed in as part of the request body. |
class |
JsonRequest<T>
A request for retrieving a T type response body at a given URL that also
optionally sends along a JSON body in the request specified.
|
class |
StringRequest
A canned request for retrieving the response body at a given URL as a String.
|
| Modifier and Type | Method and Description |
|---|---|
protected Request<android.graphics.Bitmap> |
ImageLoader.makeImageRequest(String requestUrl,
int maxWidth,
int maxHeight,
android.widget.ImageView.ScaleType scaleType,
String cacheKey) |
| Modifier and Type | Method and Description |
|---|---|
NetworkResponse |
BasicNetwork.performRequest(Request<?> request) |
org.apache.http.HttpResponse |
HurlStack.performRequest(Request<?> request,
Map<String,String> additionalHeaders) |
org.apache.http.HttpResponse |
HttpStack.performRequest(Request<?> request,
Map<String,String> additionalHeaders)
Performs an HTTP request with the given parameters.
|
org.apache.http.HttpResponse |
HttpClientStack.performRequest(Request<?> request,
Map<String,String> additionalHeaders) |
void |
RequestFuture.setRequest(Request<?> request) |
Copyright © 2014. All rights reserved.