Skip navigation links
A B C D E F G H I J L M N O P Q R S T V W 

A

add(Request<T>) - Method in class com.android.volley.RequestQueue
Adds a Request to the dispatch queue.
addMarker(String) - Method in class com.android.volley.Request
Adds an event to this request's event log; for debugging.
addRequestFinishedListener(RequestQueue.RequestFinishedListener<T>) - Method in class com.android.volley.RequestQueue
 
allHeaders - Variable in class com.android.volley.NetworkResponse
All response headers.
allResponseHeaders - Variable in class com.android.volley.Cache.Entry
All response headers.
AndroidAuthenticator - Class in com.android.volley.toolbox
An Authenticator that uses AccountManager to get auth tokens of a specified type for a specified account.
AndroidAuthenticator(Context, Account, String) - Constructor for class com.android.volley.toolbox.AndroidAuthenticator
Creates a new authenticator.
AndroidAuthenticator(Context, Account, String, boolean) - Constructor for class com.android.volley.toolbox.AndroidAuthenticator
Creates a new authenticator.
apply(Request<?>) - Method in interface com.android.volley.RequestQueue.RequestFilter
 
Authenticator - Interface in com.android.volley.toolbox
An interface for interacting with auth tokens.
AuthFailureError - Exception in com.android.volley
Error indicating that there was an authentication failure when performing a Request.
AuthFailureError() - Constructor for exception com.android.volley.AuthFailureError
 
AuthFailureError(Intent) - Constructor for exception com.android.volley.AuthFailureError
 
AuthFailureError(NetworkResponse) - Constructor for exception com.android.volley.AuthFailureError
 
AuthFailureError(String) - Constructor for exception com.android.volley.AuthFailureError
 
AuthFailureError(String, Exception) - Constructor for exception com.android.volley.AuthFailureError
 

B

BaseHttpStack - Class in com.android.volley.toolbox
An HTTP stack abstraction.
BaseHttpStack() - Constructor for class com.android.volley.toolbox.BaseHttpStack
 
BasicNetwork - Class in com.android.volley.toolbox
A network performing Volley requests over an HttpStack.
BasicNetwork(HttpStack) - Constructor for class com.android.volley.toolbox.BasicNetwork
Deprecated.
use BasicNetwork.BasicNetwork(BaseHttpStack) instead to avoid depending on Apache HTTP. This method may be removed in a future release of Volley.
BasicNetwork(HttpStack, ByteArrayPool) - Constructor for class com.android.volley.toolbox.BasicNetwork
Deprecated.
use BasicNetwork.BasicNetwork(BaseHttpStack, ByteArrayPool) instead to avoid depending on Apache HTTP. This method may be removed in a future release of Volley.
BasicNetwork(BaseHttpStack) - Constructor for class com.android.volley.toolbox.BasicNetwork
 
BasicNetwork(BaseHttpStack, ByteArrayPool) - Constructor for class com.android.volley.toolbox.BasicNetwork
 
BUF_COMPARATOR - Static variable in class com.android.volley.toolbox.ByteArrayPool
Compares buffers by size
ByteArrayPool - Class in com.android.volley.toolbox
ByteArrayPool is a source and repository of byte[] objects.
ByteArrayPool(int) - Constructor for class com.android.volley.toolbox.ByteArrayPool
 

C

Cache - Interface in com.android.volley
An interface for a cache keyed by a String with a byte array as data.
Cache.Entry - Class in com.android.volley
Data and metadata for an entry returned by the cache.
CacheDispatcher - Class in com.android.volley
Provides a thread for performing cache triage on a queue of requests.
CacheDispatcher(BlockingQueue<Request<?>>, BlockingQueue<Request<?>>, Cache, ResponseDelivery) - Constructor for class com.android.volley.CacheDispatcher
Creates a new cache triage dispatcher thread.
cacheEntry - Variable in class com.android.volley.Response
Cache metadata for this response, or null in the case of error.
cancel() - Method in class com.android.volley.Request
Mark this request as canceled.
cancel() - Method in class com.android.volley.toolbox.ImageRequest
 
cancel() - Method in class com.android.volley.toolbox.JsonRequest
 
cancel(boolean) - Method in class com.android.volley.toolbox.RequestFuture
 
cancel() - Method in class com.android.volley.toolbox.StringRequest
 
cancelAll(RequestQueue.RequestFilter) - Method in class com.android.volley.RequestQueue
Cancels all requests in this queue for which the given filter applies.
cancelAll(Object) - Method in class com.android.volley.RequestQueue
Cancels all requests in this queue with the given tag.
cancelRequest() - Method in class com.android.volley.toolbox.ImageLoader.ImageContainer
Releases interest in the in-flight request (and cancels it if no one else is listening).
clear() - Method in interface com.android.volley.Cache
Empties the cache.
clear() - Method in class com.android.volley.toolbox.DiskBasedCache
Clears the cache.
clear() - Method in class com.android.volley.toolbox.NoCache
 
ClearCacheRequest - Class in com.android.volley.toolbox
A synthetic request used for clearing the cache.
ClearCacheRequest(Cache, Runnable) - Constructor for class com.android.volley.toolbox.ClearCacheRequest
Creates a synthetic request for clearing the cache.
ClientError - Exception in com.android.volley
Indicates that the server responded with an error response indicating that the client has erred.
ClientError(NetworkResponse) - Constructor for exception com.android.volley.ClientError
 
ClientError() - Constructor for exception com.android.volley.ClientError
 
close() - Method in class com.android.volley.toolbox.PoolingByteArrayOutputStream
 
com.android.volley - package com.android.volley
 
com.android.volley.toolbox - package com.android.volley.toolbox
 
compareTo(Request<T>) - Method in class com.android.volley.Request
Our comparator sorts from high to low priority, and secondarily by sequence number to provide FIFO ordering.
convertHeaders(Header[]) - Static method in class com.android.volley.toolbox.BasicNetwork
Deprecated.
Should never have been exposed in the API. This method may be removed in a future release of Volley.
createConnection(URL) - Method in class com.android.volley.toolbox.HurlStack
Create an HttpURLConnection for the specified url.

D

d(String, Object...) - Static method in class com.android.volley.VolleyLog
 
data - Variable in class com.android.volley.Cache.Entry
The data returned from cache.
data - Variable in class com.android.volley.NetworkResponse
Raw data from this response.
DEBUG - Static variable in class com.android.volley.toolbox.BasicNetwork
 
DEBUG - Static variable in class com.android.volley.VolleyLog
 
DEFAULT_BACKOFF_MULT - Static variable in class com.android.volley.DefaultRetryPolicy
The default backoff multiplier
DEFAULT_IMAGE_BACKOFF_MULT - Static variable in class com.android.volley.toolbox.ImageRequest
Default backoff multiplier for image requests
DEFAULT_IMAGE_MAX_RETRIES - Static variable in class com.android.volley.toolbox.ImageRequest
Default number of retries for image requests
DEFAULT_IMAGE_TIMEOUT_MS - Static variable in class com.android.volley.toolbox.ImageRequest
Socket timeout in milliseconds for image requests
DEFAULT_MAX_RETRIES - Static variable in class com.android.volley.DefaultRetryPolicy
The default number of retries
DEFAULT_TIMEOUT_MS - Static variable in class com.android.volley.DefaultRetryPolicy
The default socket timeout in milliseconds
DefaultRetryPolicy - Class in com.android.volley
Default retry policy for requests.
DefaultRetryPolicy() - Constructor for class com.android.volley.DefaultRetryPolicy
Constructs a new retry policy using the default timeouts.
DefaultRetryPolicy(int, int, float) - Constructor for class com.android.volley.DefaultRetryPolicy
Constructs a new retry policy.
DELETE - Static variable in interface com.android.volley.Request.Method
 
deliverError(VolleyError) - Method in class com.android.volley.Request
Delivers error message to the ErrorListener that the Request was initialized with.
deliverResponse(T) - Method in class com.android.volley.Request
Subclasses must implement this to perform delivery of the parsed response to their listeners.
deliverResponse(Object) - Method in class com.android.volley.toolbox.ClearCacheRequest
 
deliverResponse(Bitmap) - Method in class com.android.volley.toolbox.ImageRequest
 
deliverResponse(T) - Method in class com.android.volley.toolbox.JsonRequest
 
deliverResponse(String) - Method in class com.android.volley.toolbox.StringRequest
 
DEPRECATED_GET_OR_POST - Static variable in interface com.android.volley.Request.Method
 
DiskBasedCache - Class in com.android.volley.toolbox
Cache implementation that caches files directly onto the hard disk in the specified directory.
DiskBasedCache(File, int) - Constructor for class com.android.volley.toolbox.DiskBasedCache
Constructs an instance of the DiskBasedCache at the specified directory.
DiskBasedCache(File) - Constructor for class com.android.volley.toolbox.DiskBasedCache
Constructs an instance of the DiskBasedCache at the specified directory using the default maximum cache size of 5MB.
drawableStateChanged() - Method in class com.android.volley.toolbox.NetworkImageView
 

E

e(String, Object...) - Static method in class com.android.volley.VolleyLog
 
e(Throwable, String, Object...) - Static method in class com.android.volley.VolleyLog
 
Entry() - Constructor for class com.android.volley.Cache.Entry
 
equals(Object) - Method in class com.android.volley.Header
 
error - Variable in class com.android.volley.Response
Detailed error information if errorCode != OK.
error(VolleyError) - Static method in class com.android.volley.Response
Returns a failed response containing the given error code and an optional localized message displayed to the user.
etag - Variable in class com.android.volley.Cache.Entry
ETag for cache coherency.
executeRequest(Request<?>, Map<String, String>) - Method in class com.android.volley.toolbox.BaseHttpStack
Performs an HTTP request with the given parameters.
executeRequest(Request<?>, Map<String, String>) - Method in class com.android.volley.toolbox.HurlStack
 
ExecutorDelivery - Class in com.android.volley
Delivers responses and errors.
ExecutorDelivery(Handler) - Constructor for class com.android.volley.ExecutorDelivery
Creates a new response delivery interface.
ExecutorDelivery(Executor) - Constructor for class com.android.volley.ExecutorDelivery
Creates a new response delivery interface, mockable version for testing.

F

finalize() - Method in class com.android.volley.toolbox.PoolingByteArrayOutputStream
 

G

get(String) - Method in interface com.android.volley.Cache
Retrieves an entry from the cache.
GET - Static variable in interface com.android.volley.Request.Method
 
get(String) - Method in class com.android.volley.toolbox.DiskBasedCache
Returns the cache entry with the specified key if it exists, null otherwise.
get(String, ImageLoader.ImageListener) - Method in class com.android.volley.toolbox.ImageLoader
Returns an ImageContainer for the requested URL.
get(String, ImageLoader.ImageListener, int, int) - Method in class com.android.volley.toolbox.ImageLoader
Equivalent to calling #get(String, ImageListener, int, int, ScaleType) with Scaletype == ScaleType.CENTER_INSIDE.
get(String, ImageLoader.ImageListener, int, int, ImageView.ScaleType) - Method in class com.android.volley.toolbox.ImageLoader
Issues a bitmap request with the given URL if that image is not available in the cache, and returns a bitmap container that contains all of the data relating to the request (as well as the default image if the requested image is not available).
get(String) - Method in class com.android.volley.toolbox.NoCache
 
get() - Method in class com.android.volley.toolbox.RequestFuture
 
get(long, TimeUnit) - Method in class com.android.volley.toolbox.RequestFuture
 
getAccount() - Method in class com.android.volley.toolbox.AndroidAuthenticator
Returns the Account being used by this authenticator.
getAuthToken() - Method in class com.android.volley.toolbox.AndroidAuthenticator
 
getAuthToken() - Method in interface com.android.volley.toolbox.Authenticator
Synchronously retrieves an auth token.
getAuthTokenType() - Method in class com.android.volley.toolbox.AndroidAuthenticator
Returns the Auth Token Type used by this authenticator.
getBackoffMultiplier() - Method in class com.android.volley.DefaultRetryPolicy
Returns the backoff multiplier for the policy.
getBitmap(String) - Method in interface com.android.volley.toolbox.ImageLoader.ImageCache
 
getBitmap() - Method in class com.android.volley.toolbox.ImageLoader.ImageContainer
Returns the bitmap associated with the request URL if it has been loaded, null otherwise.
getBody() - Method in class com.android.volley.Request
Returns the raw POST or PUT body to be sent.
getBody() - Method in class com.android.volley.toolbox.JsonRequest
 
getBodyContentType() - Method in class com.android.volley.Request
Returns the content type of the POST or PUT body.
getBodyContentType() - Method in class com.android.volley.toolbox.JsonRequest
 
getBuf(int) - Method in class com.android.volley.toolbox.ByteArrayPool
Returns a buffer from the pool if one is available in the requested size, or allocates a new one if a pooled one is not available.
getCache() - Method in class com.android.volley.RequestQueue
Gets the Cache instance being used.
getCacheEntry() - Method in class com.android.volley.Request
Returns the annotated cache entry, or null if there isn't one.
getCacheKey() - Method in class com.android.volley.Request
Returns the cache key for this request.
getContent() - Method in class com.android.volley.toolbox.HttpResponse
Returns an InputStream of the response content.
getContentLength() - Method in class com.android.volley.toolbox.HttpResponse
Returns the length of the content.
getCurrentRetryCount() - Method in class com.android.volley.DefaultRetryPolicy
Returns the current retry count.
getCurrentRetryCount() - Method in interface com.android.volley.RetryPolicy
Returns the current retry count (used for logging).
getCurrentTimeout() - Method in class com.android.volley.DefaultRetryPolicy
Returns the current timeout.
getCurrentTimeout() - Method in interface com.android.volley.RetryPolicy
Returns the current timeout (used for logging).
getErrorListener() - Method in class com.android.volley.Request
 
getFileForKey(String) - Method in class com.android.volley.toolbox.DiskBasedCache
Returns a file object for the given cache key.
getHeaders() - Method in class com.android.volley.Request
Returns a list of extra HTTP headers to go along with this request.
getHeaders() - Method in class com.android.volley.toolbox.HttpResponse
Returns the response headers.
getImageListener(ImageView, int, int) - Static method in class com.android.volley.toolbox.ImageLoader
The default implementation of ImageListener which handles basic functionality of showing a default image until the network response is received, at which point it will switch to either the actual image or the error image.
getMessage() - Method in exception com.android.volley.AuthFailureError
 
getMethod() - Method in class com.android.volley.Request
Return the method for this request.
getMethod() - Method in class com.android.volley.toolbox.HttpClientStack.HttpPatch
Deprecated.
 
getName() - Method in class com.android.volley.Header
 
getNetworkTimeMs() - Method in exception com.android.volley.VolleyError
 
getParams() - Method in class com.android.volley.Request
Returns a Map of parameters to be used for a POST or PUT request.
getParamsEncoding() - Method in class com.android.volley.Request
Returns which encoding should be used when converting POST or PUT parameters returned by Request.getParams() into a raw POST or PUT body.
getPostBody() - Method in class com.android.volley.Request
Deprecated.
Use Request.getBody() instead.
getPostBody() - Method in class com.android.volley.toolbox.JsonRequest
Deprecated.
getPostBodyContentType() - Method in class com.android.volley.Request
Deprecated.
getPostBodyContentType() - Method in class com.android.volley.toolbox.JsonRequest
getPostParams() - Method in class com.android.volley.Request
Deprecated.
Use Request.getParams() instead.
getPostParamsEncoding() - Method in class com.android.volley.Request
Deprecated.
getPriority() - Method in class com.android.volley.Request
Returns the Request.Priority of this request; Request.Priority.NORMAL by default.
getPriority() - Method in class com.android.volley.toolbox.ClearCacheRequest
 
getPriority() - Method in class com.android.volley.toolbox.ImageRequest
 
getRequestUrl() - Method in class com.android.volley.toolbox.ImageLoader.ImageContainer
Returns the requested URL for this container.
getResolutionIntent() - Method in exception com.android.volley.AuthFailureError
 
getRetryPolicy() - Method in class com.android.volley.Request
Returns the retry policy that should be used for this request.
getSequence() - Method in class com.android.volley.Request
Returns the sequence number of this request.
getSequenceNumber() - Method in class com.android.volley.RequestQueue
Gets a sequence number.
getStatusCode() - Method in class com.android.volley.toolbox.HttpResponse
Returns the HTTP status code of the response.
getTag() - Method in class com.android.volley.Request
Returns this request's tag.
getTimeoutMs() - Method in class com.android.volley.Request
Returns the socket timeout in milliseconds per retry attempt.
getTrafficStatsTag() - Method in class com.android.volley.Request
 
getUrl() - Method in class com.android.volley.Request
Returns the URL of this request.
getValue() - Method in class com.android.volley.Header
 

H

hasAttemptRemaining() - Method in class com.android.volley.DefaultRetryPolicy
Returns true if this policy has attempts remaining, false otherwise.
hasHadResponseDelivered() - Method in class com.android.volley.Request
Returns true if this request has had a response delivered for it.
hashCode() - Method in class com.android.volley.Header
 
HEAD - Static variable in interface com.android.volley.Request.Method
 
Header - Class in com.android.volley
An HTTP header.
Header(String, String) - Constructor for class com.android.volley.Header
 
headers - Variable in class com.android.volley.NetworkResponse
Response headers.
HttpClientStack - Class in com.android.volley.toolbox
Deprecated.
The Apache HTTP library on Android is deprecated. Use HurlStack or another BaseHttpStack implementation.
HttpClientStack(HttpClient) - Constructor for class com.android.volley.toolbox.HttpClientStack
Deprecated.
 
HttpClientStack.HttpPatch - Class in com.android.volley.toolbox
Deprecated.
The HttpPatch class does not exist in the Android framework, so this has been defined here.
HttpHeaderParser - Class in com.android.volley.toolbox
Utility methods for parsing HTTP headers.
HttpHeaderParser() - Constructor for class com.android.volley.toolbox.HttpHeaderParser
 
HttpPatch() - Constructor for class com.android.volley.toolbox.HttpClientStack.HttpPatch
Deprecated.
 
HttpPatch(URI) - Constructor for class com.android.volley.toolbox.HttpClientStack.HttpPatch
Deprecated.
 
HttpPatch(String) - Constructor for class com.android.volley.toolbox.HttpClientStack.HttpPatch
Deprecated.
 
HttpResponse - Class in com.android.volley.toolbox
A response from an HTTP server.
HttpResponse(int, List<Header>) - Constructor for class com.android.volley.toolbox.HttpResponse
Construct a new HttpResponse for an empty response body.
HttpResponse(int, List<Header>, int, InputStream) - Constructor for class com.android.volley.toolbox.HttpResponse
Construct a new HttpResponse.
HttpStack - Interface in com.android.volley.toolbox
Deprecated.
This interface should be avoided as it depends on the deprecated Apache HTTP library. Use BaseHttpStack to avoid this dependency. This class may be removed in a future release of Volley.
HurlStack - Class in com.android.volley.toolbox
A BaseHttpStack based on HttpURLConnection.
HurlStack() - Constructor for class com.android.volley.toolbox.HurlStack
 
HurlStack(HurlStack.UrlRewriter) - Constructor for class com.android.volley.toolbox.HurlStack
 
HurlStack(HurlStack.UrlRewriter, SSLSocketFactory) - Constructor for class com.android.volley.toolbox.HurlStack
 
HurlStack.UrlRewriter - Interface in com.android.volley.toolbox
An interface for transforming URLs before use.

I

ImageContainer(Bitmap, String, String, ImageLoader.ImageListener) - Constructor for class com.android.volley.toolbox.ImageLoader.ImageContainer
Constructs a BitmapContainer object.
ImageLoader - Class in com.android.volley.toolbox
Helper that handles loading and caching images from remote URLs.
ImageLoader(RequestQueue, ImageLoader.ImageCache) - Constructor for class com.android.volley.toolbox.ImageLoader
Constructs a new ImageLoader.
ImageLoader.ImageCache - Interface in com.android.volley.toolbox
Simple cache adapter interface.
ImageLoader.ImageContainer - Class in com.android.volley.toolbox
Container object for all of the data surrounding an image request.
ImageLoader.ImageListener - Interface in com.android.volley.toolbox
Interface for the response handlers on image requests.
ImageRequest - Class in com.android.volley.toolbox
A canned request for getting an image at a given URL and calling back with a decoded Bitmap.
ImageRequest(String, Response.Listener<Bitmap>, int, int, ImageView.ScaleType, Bitmap.Config, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.ImageRequest
Creates a new image request, decoding to a maximum specified width and height.
ImageRequest(String, Response.Listener<Bitmap>, int, int, Bitmap.Config, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.ImageRequest
Deprecated.
initialize() - Method in interface com.android.volley.Cache
Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread.
initialize() - Method in class com.android.volley.toolbox.DiskBasedCache
Initializes the DiskBasedCache by scanning for all files currently in the specified root directory.
initialize() - Method in class com.android.volley.toolbox.NoCache
 
intermediate - Variable in class com.android.volley.Response
True if this response was a soft-expired one and a second one MAY be coming.
invalidate(String, boolean) - Method in interface com.android.volley.Cache
Invalidates an entry in the cache.
invalidate(String, boolean) - Method in class com.android.volley.toolbox.DiskBasedCache
Invalidates an entry in the cache.
invalidate(String, boolean) - Method in class com.android.volley.toolbox.NoCache
 
invalidateAuthToken(String) - Method in class com.android.volley.toolbox.AndroidAuthenticator
 
invalidateAuthToken(String) - Method in interface com.android.volley.toolbox.Authenticator
Invalidates the provided auth token.
isCached(String, int, int) - Method in class com.android.volley.toolbox.ImageLoader
Checks if the item is available in the cache.
isCached(String, int, int, ImageView.ScaleType) - Method in class com.android.volley.toolbox.ImageLoader
Checks if the item is available in the cache.
isCanceled() - Method in class com.android.volley.Request
Returns true if this request has been canceled.
isCanceled() - Method in class com.android.volley.toolbox.ClearCacheRequest
 
isCancelled() - Method in class com.android.volley.toolbox.RequestFuture
 
isDone() - Method in class com.android.volley.toolbox.RequestFuture
 
isExpired() - Method in class com.android.volley.Cache.Entry
True if the entry is expired.
isSuccess() - Method in class com.android.volley.Response
Returns whether this response is considered successful.

J

JsonArrayRequest - Class in com.android.volley.toolbox
A request for retrieving a JSONArray response body at a given URL.
JsonArrayRequest(String, Response.Listener<JSONArray>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.JsonArrayRequest
Creates a new request.
JsonArrayRequest(int, String, JSONArray, Response.Listener<JSONArray>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.JsonArrayRequest
Creates a new request.
JsonObjectRequest - Class in com.android.volley.toolbox
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.
JsonObjectRequest(int, String, JSONObject, Response.Listener<JSONObject>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.JsonObjectRequest
Creates a new request.
JsonObjectRequest(String, JSONObject, Response.Listener<JSONObject>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.JsonObjectRequest
Constructor which defaults to GET if jsonRequest is null , POST otherwise.
JsonRequest<T> - Class in com.android.volley.toolbox
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.
JsonRequest(String, String, Response.Listener<T>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.JsonRequest
Deprecated.
Use #JsonRequest(int, String, String, Listener, ErrorListener).
JsonRequest(int, String, String, Response.Listener<T>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.JsonRequest
 

L

lastModified - Variable in class com.android.volley.Cache.Entry
The last modified date for the requested object.
logError(String, String, long) - Method in class com.android.volley.toolbox.BasicNetwork
 

M

makeImageRequest(String, int, int, ImageView.ScaleType, String) - Method in class com.android.volley.toolbox.ImageLoader
 
markDelivered() - Method in class com.android.volley.Request
Mark this request as having a response delivered on it.
mClient - Variable in class com.android.volley.toolbox.HttpClientStack
Deprecated.
 
METHOD_NAME - Static variable in class com.android.volley.toolbox.HttpClientStack.HttpPatch
Deprecated.
 
mHttpStack - Variable in class com.android.volley.toolbox.BasicNetwork
Deprecated.
Should never have been exposed in the API. This field may be removed in a future release of Volley.
mPool - Variable in class com.android.volley.toolbox.BasicNetwork
 

N

Network - Interface in com.android.volley
An interface for performing requests.
NetworkDispatcher - Class in com.android.volley
Provides a thread for performing network dispatch from a queue of requests.
NetworkDispatcher(BlockingQueue<Request<?>>, Network, Cache, ResponseDelivery) - Constructor for class com.android.volley.NetworkDispatcher
Creates a new network dispatcher thread.
NetworkError - Exception in com.android.volley
Indicates that there was a network error when performing a Volley request.
NetworkError() - Constructor for exception com.android.volley.NetworkError
 
NetworkError(Throwable) - Constructor for exception com.android.volley.NetworkError
 
NetworkError(NetworkResponse) - Constructor for exception com.android.volley.NetworkError
 
NetworkImageView - Class in com.android.volley.toolbox
Handles fetching an image from a URL as well as the life-cycle of the associated request.
NetworkImageView(Context) - Constructor for class com.android.volley.toolbox.NetworkImageView
 
NetworkImageView(Context, AttributeSet) - Constructor for class com.android.volley.toolbox.NetworkImageView
 
NetworkImageView(Context, AttributeSet, int) - Constructor for class com.android.volley.toolbox.NetworkImageView
 
NetworkResponse - Class in com.android.volley
Data and headers returned from Network.performRequest(Request).
NetworkResponse(int, byte[], Map<String, String>, boolean, long) - Constructor for class com.android.volley.NetworkResponse
Deprecated.
see NetworkResponse.NetworkResponse(int, byte[], boolean, long, List). This constructor cannot handle server responses containing multiple headers with the same name. This constructor may be removed in a future release of Volley.
NetworkResponse(int, byte[], boolean, long, List<Header>) - Constructor for class com.android.volley.NetworkResponse
Creates a new network response.
NetworkResponse(int, byte[], Map<String, String>, boolean) - Constructor for class com.android.volley.NetworkResponse
Deprecated.
see NetworkResponse.NetworkResponse(int, byte[], boolean, long, List). This constructor cannot handle server responses containing multiple headers with the same name. This constructor may be removed in a future release of Volley.
NetworkResponse(byte[]) - Constructor for class com.android.volley.NetworkResponse
Creates a new network response for an OK response with no headers.
NetworkResponse(byte[], Map<String, String>) - Constructor for class com.android.volley.NetworkResponse
Deprecated.
see NetworkResponse.NetworkResponse(int, byte[], boolean, long, List). This constructor cannot handle server responses containing multiple headers with the same name. This constructor may be removed in a future release of Volley.
networkResponse - Variable in exception com.android.volley.VolleyError
 
networkTimeMs - Variable in class com.android.volley.NetworkResponse
Network roundtrip time in milliseconds.
newFuture() - Static method in class com.android.volley.toolbox.RequestFuture
 
newRequestQueue(Context, BaseHttpStack) - Static method in class com.android.volley.toolbox.Volley
Creates a default instance of the worker pool and calls RequestQueue.start() on it.
newRequestQueue(Context, HttpStack) - Static method in class com.android.volley.toolbox.Volley
Deprecated.
Use Volley.newRequestQueue(Context, BaseHttpStack) instead to avoid depending on Apache HTTP. This method may be removed in a future release of Volley.
newRequestQueue(Context) - Static method in class com.android.volley.toolbox.Volley
Creates a default instance of the worker pool and calls RequestQueue.start() on it.
NoCache - Class in com.android.volley.toolbox
A cache that doesn't.
NoCache() - Constructor for class com.android.volley.toolbox.NoCache
 
NoConnectionError - Exception in com.android.volley
Error indicating that no connection could be established when performing a Volley request.
NoConnectionError() - Constructor for exception com.android.volley.NoConnectionError
 
NoConnectionError(Throwable) - Constructor for exception com.android.volley.NoConnectionError
 
notModified - Variable in class com.android.volley.NetworkResponse
True if the server returned a 304 (Not Modified).

O

onDetachedFromWindow() - Method in class com.android.volley.toolbox.NetworkImageView
 
onErrorResponse(VolleyError) - Method in interface com.android.volley.Response.ErrorListener
Callback method that an error has been occurred with the provided error code and optional user-readable message.
onErrorResponse(VolleyError) - Method in class com.android.volley.toolbox.RequestFuture
 
onGetImageError(String, VolleyError) - Method in class com.android.volley.toolbox.ImageLoader
Handler for when an image failed to load.
onGetImageSuccess(String, Bitmap) - Method in class com.android.volley.toolbox.ImageLoader
Handler for when an image was successfully loaded.
onLayout(boolean, int, int, int, int) - Method in class com.android.volley.toolbox.NetworkImageView
 
onPrepareRequest(HttpUriRequest) - Method in class com.android.volley.toolbox.HttpClientStack
Deprecated.
Called before the request is executed using the underlying HttpClient.
onRequestFinished(Request<T>) - Method in interface com.android.volley.RequestQueue.RequestFinishedListener
Called when a request has finished processing.
onResponse(T) - Method in interface com.android.volley.Response.Listener
Called when a response is received.
onResponse(ImageLoader.ImageContainer, boolean) - Method in interface com.android.volley.toolbox.ImageLoader.ImageListener
Listens for non-error changes to the loading of the image request.
onResponse(T) - Method in class com.android.volley.toolbox.RequestFuture
 
OPTIONS - Static variable in interface com.android.volley.Request.Method
 

P

parseCacheHeaders(NetworkResponse) - Static method in class com.android.volley.toolbox.HttpHeaderParser
Extracts a Cache.Entry from a NetworkResponse.
parseCharset(Map<String, String>, String) - Static method in class com.android.volley.toolbox.HttpHeaderParser
Retrieve a charset from headers
parseCharset(Map<String, String>) - Static method in class com.android.volley.toolbox.HttpHeaderParser
Returns the charset specified in the Content-Type of this header, or the HTTP default (ISO-8859-1) if none can be found.
parseDateAsEpoch(String) - Static method in class com.android.volley.toolbox.HttpHeaderParser
Parse date in RFC1123 format, and return its value as epoch
ParseError - Exception in com.android.volley
Indicates that the server's response could not be parsed.
ParseError() - Constructor for exception com.android.volley.ParseError
 
ParseError(NetworkResponse) - Constructor for exception com.android.volley.ParseError
 
ParseError(Throwable) - Constructor for exception com.android.volley.ParseError
 
parseNetworkError(VolleyError) - Method in class com.android.volley.Request
Subclasses can override this method to parse 'networkError' and return a more specific error.
parseNetworkResponse(NetworkResponse) - Method in class com.android.volley.Request
Subclasses must implement this to parse the raw network response and return an appropriate response type.
parseNetworkResponse(NetworkResponse) - Method in class com.android.volley.toolbox.ClearCacheRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.android.volley.toolbox.ImageRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.android.volley.toolbox.JsonArrayRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.android.volley.toolbox.JsonObjectRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.android.volley.toolbox.JsonRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.android.volley.toolbox.StringRequest
 
PATCH - Static variable in interface com.android.volley.Request.Method
 
performRequest(Request<?>) - Method in interface com.android.volley.Network
Performs the specified request.
performRequest(Request<?>, Map<String, String>) - Method in class com.android.volley.toolbox.BaseHttpStack
Deprecated.
use BaseHttpStack.executeRequest(com.android.volley.Request<?>, java.util.Map<java.lang.String, java.lang.String>) instead to avoid a dependency on the deprecated Apache HTTP library. Nothing in Volley's own source calls this method. However, since BasicNetwork.mHttpStack is exposed to subclasses, we provide this implementation in case legacy client apps are dependent on that field. This method may be removed in a future release of Volley.
performRequest(Request<?>) - Method in class com.android.volley.toolbox.BasicNetwork
 
performRequest(Request<?>, Map<String, String>) - Method in class com.android.volley.toolbox.HttpClientStack
Deprecated.
 
performRequest(Request<?>, Map<String, String>) - Method in interface com.android.volley.toolbox.HttpStack
Deprecated.
Performs an HTTP request with the given parameters.
PoolingByteArrayOutputStream - Class in com.android.volley.toolbox
A variation of ByteArrayOutputStream that uses a pool of byte[] buffers instead of always allocating them fresh, saving on heap churn.
PoolingByteArrayOutputStream(ByteArrayPool) - Constructor for class com.android.volley.toolbox.PoolingByteArrayOutputStream
Constructs a new PoolingByteArrayOutputStream with a default size.
PoolingByteArrayOutputStream(ByteArrayPool, int) - Constructor for class com.android.volley.toolbox.PoolingByteArrayOutputStream
Constructs a new ByteArrayOutputStream with a default size of size bytes.
POST - Static variable in interface com.android.volley.Request.Method
 
postError(Request<?>, VolleyError) - Method in class com.android.volley.ExecutorDelivery
 
postError(Request<?>, VolleyError) - Method in interface com.android.volley.ResponseDelivery
Posts an error for the given request.
postResponse(Request<?>, Response<?>) - Method in class com.android.volley.ExecutorDelivery
 
postResponse(Request<?>, Response<?>, Runnable) - Method in class com.android.volley.ExecutorDelivery
 
postResponse(Request<?>, Response<?>) - Method in interface com.android.volley.ResponseDelivery
Parses a response from the network or cache and delivers it.
postResponse(Request<?>, Response<?>, Runnable) - Method in interface com.android.volley.ResponseDelivery
Parses a response from the network or cache and delivers it.
PROTOCOL_CHARSET - Static variable in class com.android.volley.toolbox.JsonRequest
Default charset for JSON request.
put(String, Cache.Entry) - Method in interface com.android.volley.Cache
Adds or replaces an entry to the cache.
PUT - Static variable in interface com.android.volley.Request.Method
 
put(String, Cache.Entry) - Method in class com.android.volley.toolbox.DiskBasedCache
Puts the entry with the specified key into the cache.
put(String, Cache.Entry) - Method in class com.android.volley.toolbox.NoCache
 
putBitmap(String, Bitmap) - Method in interface com.android.volley.toolbox.ImageLoader.ImageCache
 

Q

quit() - Method in class com.android.volley.CacheDispatcher
Forces this dispatcher to quit immediately.
quit() - Method in class com.android.volley.NetworkDispatcher
Forces this dispatcher to quit immediately.

R

refreshNeeded() - Method in class com.android.volley.Cache.Entry
True if a refresh is needed from the original data source.
remove(String) - Method in interface com.android.volley.Cache
Removes an entry from the cache.
remove(String) - Method in class com.android.volley.toolbox.DiskBasedCache
Removes the specified key from the cache if it exists.
remove(String) - Method in class com.android.volley.toolbox.NoCache
 
removeRequestFinishedListener(RequestQueue.RequestFinishedListener<T>) - Method in class com.android.volley.RequestQueue
Remove a RequestFinishedListener.
Request<T> - Class in com.android.volley
Base class for all network requests.
Request(String, Response.ErrorListener) - Constructor for class com.android.volley.Request
Request(int, String, Response.ErrorListener) - Constructor for class com.android.volley.Request
Creates a new request with the given method (one of the values from Request.Method), URL, and error listener.
Request.Method - Interface in com.android.volley
Supported request methods.
Request.Priority - Enum in com.android.volley
Priority values.
RequestFuture<T> - Class in com.android.volley.toolbox
A Future that represents a Volley request.
RequestQueue - Class in com.android.volley
A request dispatch queue with a thread pool of dispatchers.
RequestQueue(Cache, Network, int, ResponseDelivery) - Constructor for class com.android.volley.RequestQueue
Creates the worker pool.
RequestQueue(Cache, Network, int) - Constructor for class com.android.volley.RequestQueue
Creates the worker pool.
RequestQueue(Cache, Network) - Constructor for class com.android.volley.RequestQueue
Creates the worker pool.
RequestQueue.RequestFilter - Interface in com.android.volley
A simple predicate or filter interface for Requests, for use by RequestQueue.cancelAll(RequestFilter).
RequestQueue.RequestFinishedListener<T> - Interface in com.android.volley
Callback interface for completed requests.
Response<T> - Class in com.android.volley
Encapsulates a parsed response for delivery.
Response.ErrorListener - Interface in com.android.volley
Callback interface for delivering error responses.
Response.Listener<T> - Interface in com.android.volley
Callback interface for delivering parsed responses.
ResponseDelivery - Interface in com.android.volley
 
responseHeaders - Variable in class com.android.volley.Cache.Entry
Response headers as received from server; must be non-null.
result - Variable in class com.android.volley.Response
Parsed response, or null in the case of error.
retry(VolleyError) - Method in class com.android.volley.DefaultRetryPolicy
Prepares for the next retry by applying a backoff to the timeout.
retry(VolleyError) - Method in interface com.android.volley.RetryPolicy
Prepares for the next retry by applying a backoff to the timeout.
RetryPolicy - Interface in com.android.volley
Retry policy for a request.
returnBuf(byte[]) - Method in class com.android.volley.toolbox.ByteArrayPool
Returns a buffer to the pool, throwing away old buffers if the pool would exceed its allotted size.
rewriteUrl(String) - Method in interface com.android.volley.toolbox.HurlStack.UrlRewriter
Returns a URL to use instead of the provided one, or null to indicate this URL should not be used at all.
run() - Method in class com.android.volley.CacheDispatcher
 
run() - Method in class com.android.volley.NetworkDispatcher
 

S

serverDate - Variable in class com.android.volley.Cache.Entry
Date of this response as reported by the server.
ServerError - Exception in com.android.volley
Indicates that the server responded with an error response.
ServerError(NetworkResponse) - Constructor for exception com.android.volley.ServerError
 
ServerError() - Constructor for exception com.android.volley.ServerError
 
setBatchedResponseDelay(int) - Method in class com.android.volley.toolbox.ImageLoader
Sets the amount of time to wait after the first response arrives before delivering all responses.
setCacheEntry(Cache.Entry) - Method in class com.android.volley.Request
Annotates this request with an entry retrieved for it from cache.
setDefaultImageResId(int) - Method in class com.android.volley.toolbox.NetworkImageView
Sets the default image resource ID to be used for this view until the attempt to load it completes.
setErrorImageResId(int) - Method in class com.android.volley.toolbox.NetworkImageView
Sets the error image resource ID to be used for this view in the event that the image requested fails to load.
setImageUrl(String, ImageLoader) - Method in class com.android.volley.toolbox.NetworkImageView
Sets URL of the image that should be loaded into this view.
setRequest(Request<?>) - Method in class com.android.volley.toolbox.RequestFuture
 
setRequestQueue(RequestQueue) - Method in class com.android.volley.Request
Associates this request with the given queue.
setRetryPolicy(RetryPolicy) - Method in class com.android.volley.Request
Sets the retry policy for this request.
setSequence(int) - Method in class com.android.volley.Request
Sets the sequence number of this request.
setShouldCache(boolean) - Method in class com.android.volley.Request
Set whether or not responses to this request should be cached.
setShouldRetryServerErrors(boolean) - Method in class com.android.volley.Request
Sets whether or not the request should be retried in the event of an HTTP 5xx (server) error.
setTag(Object) - Method in class com.android.volley.Request
Set a tag on this request.
setTag(String) - Static method in class com.android.volley.VolleyLog
Customize the log tag for your application, so that other apps using Volley don't mix their logs with yours.
shouldCache() - Method in class com.android.volley.Request
Returns true if responses to this request should be cached.
shouldRetryServerErrors() - Method in class com.android.volley.Request
Returns true if this request should be retried in the event of an HTTP 5xx (server) error.
softTtl - Variable in class com.android.volley.Cache.Entry
Soft TTL for this record.
start() - Method in class com.android.volley.RequestQueue
Starts the dispatchers in this queue.
statusCode - Variable in class com.android.volley.NetworkResponse
The HTTP status code.
stop() - Method in class com.android.volley.RequestQueue
Stops the cache and network dispatchers.
StringRequest - Class in com.android.volley.toolbox
A canned request for retrieving the response body at a given URL as a String.
StringRequest(int, String, Response.Listener<String>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.StringRequest
Creates a new request with the given method.
StringRequest(String, Response.Listener<String>, Response.ErrorListener) - Constructor for class com.android.volley.toolbox.StringRequest
Creates a new GET request.
success(T, Cache.Entry) - Static method in class com.android.volley.Response
Returns a successful response containing the parsed result.

T

TAG - Static variable in class com.android.volley.VolleyLog
 
TimeoutError - Exception in com.android.volley
Indicates that the connection or the socket timed out.
TimeoutError() - Constructor for exception com.android.volley.TimeoutError
 
toString() - Method in class com.android.volley.Header
 
toString() - Method in class com.android.volley.Request
 
TRACE - Static variable in interface com.android.volley.Request.Method
 
ttl - Variable in class com.android.volley.Cache.Entry
TTL for this record.

V

v(String, Object...) - Static method in class com.android.volley.VolleyLog
 
valueOf(String) - Static method in enum com.android.volley.Request.Priority
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.android.volley.Request.Priority
Returns an array containing the constants of this enum type, in the order they are declared.
Volley - Class in com.android.volley.toolbox
 
Volley() - Constructor for class com.android.volley.toolbox.Volley
 
VolleyError - Exception in com.android.volley
Exception style class encapsulating Volley errors
VolleyError() - Constructor for exception com.android.volley.VolleyError
 
VolleyError(NetworkResponse) - Constructor for exception com.android.volley.VolleyError
 
VolleyError(String) - Constructor for exception com.android.volley.VolleyError
 
VolleyError(String, Throwable) - Constructor for exception com.android.volley.VolleyError
 
VolleyError(Throwable) - Constructor for exception com.android.volley.VolleyError
 
VolleyLog - Class in com.android.volley
Logging helper class.
VolleyLog() - Constructor for class com.android.volley.VolleyLog
 

W

write(byte[], int, int) - Method in class com.android.volley.toolbox.PoolingByteArrayOutputStream
 
write(int) - Method in class com.android.volley.toolbox.PoolingByteArrayOutputStream
 
wtf(String, Object...) - Static method in class com.android.volley.VolleyLog
 
wtf(Throwable, String, Object...) - Static method in class com.android.volley.VolleyLog
 
A B C D E F G H I J L M N O P Q R S T V W 
Skip navigation links