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.mopub.volley.RequestQueue
Adds a Request to the dispatch queue.
addMarker(String) - Method in class com.mopub.volley.Request
Adds an event to this request's event log; for debugging.
addRequestEventListener(RequestQueue.RequestEventListener) - Method in class com.mopub.volley.RequestQueue
Add a listener for request life cycle events.
addRequestFinishedListener(RequestQueue.RequestFinishedListener<T>) - Method in class com.mopub.volley.RequestQueue
Deprecated.
allHeaders - Variable in class com.mopub.volley.NetworkResponse
All response headers.
allResponseHeaders - Variable in class com.mopub.volley.Cache.Entry
All response headers.
AndroidAuthenticator - Class in com.mopub.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.mopub.volley.toolbox.AndroidAuthenticator
Creates a new authenticator.
AndroidAuthenticator(Context, Account, String, boolean) - Constructor for class com.mopub.volley.toolbox.AndroidAuthenticator
Creates a new authenticator.
apply(Request<?>) - Method in interface com.mopub.volley.RequestQueue.RequestFilter
 
Authenticator - Interface in com.mopub.volley.toolbox
An interface for interacting with auth tokens.
AuthFailureError - Exception in com.mopub.volley
Error indicating that there was an authentication failure when performing a Request.
AuthFailureError() - Constructor for exception com.mopub.volley.AuthFailureError
 
AuthFailureError(Intent) - Constructor for exception com.mopub.volley.AuthFailureError
 
AuthFailureError(NetworkResponse) - Constructor for exception com.mopub.volley.AuthFailureError
 
AuthFailureError(String) - Constructor for exception com.mopub.volley.AuthFailureError
 
AuthFailureError(String, Exception) - Constructor for exception com.mopub.volley.AuthFailureError
 

B

BaseHttpStack - Class in com.mopub.volley.toolbox
 
BaseHttpStack() - Constructor for class com.mopub.volley.toolbox.BaseHttpStack
 
BasicNetwork - Class in com.mopub.volley.toolbox
A network performing Volley requests over an BaseHttpStack.
BasicNetwork(BaseHttpStack) - Constructor for class com.mopub.volley.toolbox.BasicNetwork
 
BasicNetwork(BaseHttpStack, ByteArrayPool) - Constructor for class com.mopub.volley.toolbox.BasicNetwork
 
BUF_COMPARATOR - Static variable in class com.mopub.volley.toolbox.ByteArrayPool
Compares buffers by size
ByteArrayPool - Class in com.mopub.volley.toolbox
ByteArrayPool is a source and repository of byte[] objects.
ByteArrayPool(int) - Constructor for class com.mopub.volley.toolbox.ByteArrayPool
 

C

Cache - Interface in com.mopub.volley
An interface for a cache keyed by a String with a byte array as data.
Cache.Entry - Class in com.mopub.volley
Data and metadata for an entry returned by the cache.
CacheDispatcher - Class in com.mopub.volley
Provides a thread for performing cache triage on a queue of requests.
CacheDispatcher(BlockingQueue<Request<?>>, BlockingQueue<Request<?>>, Cache, ResponseDelivery) - Constructor for class com.mopub.volley.CacheDispatcher
Creates a new cache triage dispatcher thread.
cacheEntry - Variable in class com.mopub.volley.Response
Cache metadata for this response, or null in the case of error.
cancel() - Method in class com.mopub.volley.Request
Mark this request as canceled.
cancel() - Method in class com.mopub.volley.toolbox.ImageRequest
 
cancel() - Method in class com.mopub.volley.toolbox.JsonRequest
 
cancel(boolean) - Method in class com.mopub.volley.toolbox.RequestFuture
 
cancel() - Method in class com.mopub.volley.toolbox.StringRequest
 
cancelAll(RequestQueue.RequestFilter) - Method in class com.mopub.volley.RequestQueue
Cancels all requests in this queue for which the given filter applies.
cancelAll(Object) - Method in class com.mopub.volley.RequestQueue
Cancels all requests in this queue with the given tag.
cancelRequest() - Method in class com.mopub.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.mopub.volley.Cache
Empties the cache.
clear() - Method in class com.mopub.volley.toolbox.DiskBasedCache
Clears the cache.
clear() - Method in class com.mopub.volley.toolbox.NoCache
 
ClearCacheRequest - Class in com.mopub.volley.toolbox
A synthetic request used for clearing the cache.
ClearCacheRequest(Cache, Runnable) - Constructor for class com.mopub.volley.toolbox.ClearCacheRequest
Creates a synthetic request for clearing the cache.
ClientError - Exception in com.mopub.volley
Indicates that the server responded with an error response indicating that the client has erred.
ClientError(NetworkResponse) - Constructor for exception com.mopub.volley.ClientError
 
ClientError() - Constructor for exception com.mopub.volley.ClientError
 
close() - Method in class com.mopub.volley.toolbox.PoolingByteArrayOutputStream
 
com.mopub.volley - package com.mopub.volley
 
com.mopub.volley.toolbox - package com.mopub.volley.toolbox
 
compareTo(Request<T>) - Method in class com.mopub.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.mopub.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.mopub.volley.toolbox.HurlStack
Create an HttpURLConnection for the specified url.

D

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

E

e(String, Object...) - Static method in class com.mopub.volley.VolleyLog
 
e(Throwable, String, Object...) - Static method in class com.mopub.volley.VolleyLog
 
Entry() - Constructor for class com.mopub.volley.Cache.Entry
 
equals(Object) - Method in class com.mopub.volley.Header
 
error - Variable in class com.mopub.volley.Response
Detailed error information if errorCode != OK.
error(VolleyError) - Static method in class com.mopub.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.mopub.volley.Cache.Entry
ETag for cache coherency.
executeRequest(Request<?>, Map<String, String>) - Method in class com.mopub.volley.toolbox.BaseHttpStack
Performs an HTTP request with the given parameters.
executeRequest(Request<?>, Map<String, String>) - Method in class com.mopub.volley.toolbox.HurlStack
 
ExecutorDelivery - Class in com.mopub.volley
Delivers responses and errors.
ExecutorDelivery(Handler) - Constructor for class com.mopub.volley.ExecutorDelivery
Creates a new response delivery interface.
ExecutorDelivery(Executor) - Constructor for class com.mopub.volley.ExecutorDelivery
Creates a new response delivery interface, mockable version for testing.

F

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

G

get(String) - Method in interface com.mopub.volley.Cache
Retrieves an entry from the cache.
GET - Static variable in interface com.mopub.volley.Request.Method
 
get(String) - Method in class com.mopub.volley.toolbox.DiskBasedCache
Returns the cache entry with the specified key if it exists, null otherwise.
get(String, ImageLoader.ImageListener) - Method in class com.mopub.volley.toolbox.ImageLoader
Returns an ImageContainer for the requested URL.
get(String, ImageLoader.ImageListener, int, int) - Method in class com.mopub.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.mopub.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.mopub.volley.toolbox.NoCache
 
get() - Method in class com.mopub.volley.toolbox.RequestFuture
 
get(long, TimeUnit) - Method in class com.mopub.volley.toolbox.RequestFuture
 
getAccount() - Method in class com.mopub.volley.toolbox.AndroidAuthenticator
Returns the Account being used by this authenticator.
getAuthToken() - Method in class com.mopub.volley.toolbox.AndroidAuthenticator
 
getAuthToken() - Method in interface com.mopub.volley.toolbox.Authenticator
Synchronously retrieves an auth token.
getAuthTokenType() - Method in class com.mopub.volley.toolbox.AndroidAuthenticator
Returns the Auth Token Type used by this authenticator.
getBackoffMultiplier() - Method in class com.mopub.volley.DefaultRetryPolicy
Returns the backoff multiplier for the policy.
getBitmap(String) - Method in interface com.mopub.volley.toolbox.ImageLoader.ImageCache
 
getBitmap() - Method in class com.mopub.volley.toolbox.ImageLoader.ImageContainer
Returns the bitmap associated with the request URL if it has been loaded, null otherwise.
getBody() - Method in class com.mopub.volley.Request
Returns the raw POST or PUT body to be sent.
getBody() - Method in class com.mopub.volley.toolbox.JsonRequest
 
getBodyContentType() - Method in class com.mopub.volley.Request
Returns the content type of the POST or PUT body.
getBodyContentType() - Method in class com.mopub.volley.toolbox.JsonRequest
 
getBuf(int) - Method in class com.mopub.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.mopub.volley.RequestQueue
Gets the Cache instance being used.
getCacheEntry() - Method in class com.mopub.volley.Request
Returns the annotated cache entry, or null if there isn't one.
getCacheKey() - Method in class com.mopub.volley.Request
Returns the cache key for this request.
getContent() - Method in class com.mopub.volley.toolbox.HttpResponse
Returns an InputStream of the response content.
getContentLength() - Method in class com.mopub.volley.toolbox.HttpResponse
Returns the length of the content.
getCurrentRetryCount() - Method in class com.mopub.volley.DefaultRetryPolicy
Returns the current retry count.
getCurrentRetryCount() - Method in interface com.mopub.volley.RetryPolicy
Returns the current retry count (used for logging).
getCurrentTimeout() - Method in class com.mopub.volley.DefaultRetryPolicy
Returns the current timeout.
getCurrentTimeout() - Method in interface com.mopub.volley.RetryPolicy
Returns the current timeout (used for logging).
getErrorListener() - Method in class com.mopub.volley.Request
 
getFileForKey(String) - Method in class com.mopub.volley.toolbox.DiskBasedCache
Returns a file object for the given cache key.
getHeaders() - Method in class com.mopub.volley.Request
Returns a list of extra HTTP headers to go along with this request.
getHeaders() - Method in class com.mopub.volley.toolbox.HttpResponse
Returns the response headers.
getImageListener(ImageView, int, int) - Static method in class com.mopub.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.mopub.volley.AuthFailureError
 
getMethod() - Method in class com.mopub.volley.Request
Return the method for this request.
getName() - Method in class com.mopub.volley.Header
 
getNetworkTimeMs() - Method in exception com.mopub.volley.VolleyError
 
getParams() - Method in class com.mopub.volley.Request
Returns a Map of parameters to be used for a POST or PUT request.
getParamsEncoding() - Method in class com.mopub.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.mopub.volley.Request
Deprecated.
Use Request.getBody() instead.
getPostBody() - Method in class com.mopub.volley.toolbox.JsonRequest
Deprecated.
getPostBodyContentType() - Method in class com.mopub.volley.Request
Deprecated.
getPostBodyContentType() - Method in class com.mopub.volley.toolbox.JsonRequest
getPostParams() - Method in class com.mopub.volley.Request
Deprecated.
Use Request.getParams() instead.
getPostParamsEncoding() - Method in class com.mopub.volley.Request
Deprecated.
getPriority() - Method in class com.mopub.volley.Request
Returns the Request.Priority of this request; Request.Priority.NORMAL by default.
getPriority() - Method in class com.mopub.volley.toolbox.ClearCacheRequest
 
getPriority() - Method in class com.mopub.volley.toolbox.ImageRequest
 
getRequestUrl() - Method in class com.mopub.volley.toolbox.ImageLoader.ImageContainer
Returns the requested URL for this container.
getResolutionIntent() - Method in exception com.mopub.volley.AuthFailureError
 
getRetryPolicy() - Method in class com.mopub.volley.Request
Returns the retry policy that should be used for this request.
getSequence() - Method in class com.mopub.volley.Request
Returns the sequence number of this request.
getSequenceNumber() - Method in class com.mopub.volley.RequestQueue
Gets a sequence number.
getStatusCode() - Method in class com.mopub.volley.toolbox.HttpResponse
Returns the HTTP status code of the response.
getTag() - Method in class com.mopub.volley.Request
Returns this request's tag.
getTimeoutMs() - Method in class com.mopub.volley.Request
Returns the socket timeout in milliseconds per retry attempt.
getTrafficStatsTag() - Method in class com.mopub.volley.Request
 
getUrl() - Method in class com.mopub.volley.Request
Returns the URL of this request.
getValue() - Method in class com.mopub.volley.Header
 

H

hasAttemptRemaining() - Method in class com.mopub.volley.DefaultRetryPolicy
Returns true if this policy has attempts remaining, false otherwise.
hasHadResponseDelivered() - Method in class com.mopub.volley.Request
Returns true if this request has had a response delivered for it.
hashCode() - Method in class com.mopub.volley.Header
 
HEAD - Static variable in interface com.mopub.volley.Request.Method
 
Header - Class in com.mopub.volley
An HTTP header.
Header(String, String) - Constructor for class com.mopub.volley.Header
 
headers - Variable in class com.mopub.volley.NetworkResponse
Response headers.
HttpHeaderParser - Class in com.mopub.volley.toolbox
Utility methods for parsing HTTP headers.
HttpHeaderParser() - Constructor for class com.mopub.volley.toolbox.HttpHeaderParser
 
HttpResponse - Class in com.mopub.volley.toolbox
A response from an HTTP server.
HttpResponse(int, List<Header>) - Constructor for class com.mopub.volley.toolbox.HttpResponse
Construct a new HttpResponse for an empty response body.
HttpResponse(int, List<Header>, int, InputStream) - Constructor for class com.mopub.volley.toolbox.HttpResponse
Construct a new HttpResponse.
HurlStack - Class in com.mopub.volley.toolbox
A BaseHttpStack based on HttpURLConnection.
HurlStack() - Constructor for class com.mopub.volley.toolbox.HurlStack
 
HurlStack(HurlStack.UrlRewriter) - Constructor for class com.mopub.volley.toolbox.HurlStack
 
HurlStack(HurlStack.UrlRewriter, SSLSocketFactory) - Constructor for class com.mopub.volley.toolbox.HurlStack
 
HurlStack.UrlRewriter - Interface in com.mopub.volley.toolbox
An interface for transforming URLs before use.

I

ImageContainer(Bitmap, String, String, ImageLoader.ImageListener) - Constructor for class com.mopub.volley.toolbox.ImageLoader.ImageContainer
Constructs a BitmapContainer object.
ImageLoader - Class in com.mopub.volley.toolbox
Helper that handles loading and caching images from remote URLs.
ImageLoader(RequestQueue, ImageLoader.ImageCache) - Constructor for class com.mopub.volley.toolbox.ImageLoader
Constructs a new ImageLoader.
ImageLoader.ImageCache - Interface in com.mopub.volley.toolbox
Simple cache adapter interface.
ImageLoader.ImageContainer - Class in com.mopub.volley.toolbox
Container object for all of the data surrounding an image request.
ImageLoader.ImageListener - Interface in com.mopub.volley.toolbox
Interface for the response handlers on image requests.
ImageRequest - Class in com.mopub.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.mopub.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.mopub.volley.toolbox.ImageRequest
Deprecated.
initialize() - Method in interface com.mopub.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.mopub.volley.toolbox.DiskBasedCache
Initializes the DiskBasedCache by scanning for all files currently in the specified root directory.
initialize() - Method in class com.mopub.volley.toolbox.NoCache
 
intermediate - Variable in class com.mopub.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.mopub.volley.Cache
Invalidates an entry in the cache.
invalidate(String, boolean) - Method in class com.mopub.volley.toolbox.DiskBasedCache
Invalidates an entry in the cache.
invalidate(String, boolean) - Method in class com.mopub.volley.toolbox.NoCache
 
invalidateAuthToken(String) - Method in class com.mopub.volley.toolbox.AndroidAuthenticator
 
invalidateAuthToken(String) - Method in interface com.mopub.volley.toolbox.Authenticator
Invalidates the provided auth token.
isCached(String, int, int) - Method in class com.mopub.volley.toolbox.ImageLoader
Checks if the item is available in the cache.
isCached(String, int, int, ImageView.ScaleType) - Method in class com.mopub.volley.toolbox.ImageLoader
Checks if the item is available in the cache.
isCanceled() - Method in class com.mopub.volley.Request
Returns true if this request has been canceled.
isCanceled() - Method in class com.mopub.volley.toolbox.ClearCacheRequest
 
isCancelled() - Method in class com.mopub.volley.toolbox.RequestFuture
 
isDone() - Method in class com.mopub.volley.toolbox.RequestFuture
 
isExpired() - Method in class com.mopub.volley.Cache.Entry
True if the entry is expired.
isSuccess() - Method in class com.mopub.volley.Response
Returns whether this response is considered successful.

J

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

L

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

M

makeImageRequest(String, int, int, ImageView.ScaleType, String) - Method in class com.mopub.volley.toolbox.ImageLoader
 
markDelivered() - Method in class com.mopub.volley.Request
Mark this request as having a response delivered on it.
mPool - Variable in class com.mopub.volley.toolbox.BasicNetwork
 

N

Network - Interface in com.mopub.volley
An interface for performing requests.
NetworkDispatcher - Class in com.mopub.volley
Provides a thread for performing network dispatch from a queue of requests.
NetworkDispatcher(BlockingQueue<Request<?>>, Network, Cache, ResponseDelivery) - Constructor for class com.mopub.volley.NetworkDispatcher
Creates a new network dispatcher thread.
NetworkError - Exception in com.mopub.volley
Indicates that there was a network error when performing a Volley request.
NetworkError() - Constructor for exception com.mopub.volley.NetworkError
 
NetworkError(Throwable) - Constructor for exception com.mopub.volley.NetworkError
 
NetworkError(NetworkResponse) - Constructor for exception com.mopub.volley.NetworkError
 
NetworkImageView - Class in com.mopub.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.mopub.volley.toolbox.NetworkImageView
 
NetworkImageView(Context, AttributeSet) - Constructor for class com.mopub.volley.toolbox.NetworkImageView
 
NetworkImageView(Context, AttributeSet, int) - Constructor for class com.mopub.volley.toolbox.NetworkImageView
 
NetworkResponse - Class in com.mopub.volley
Data and headers returned from Network.performRequest(Request).
NetworkResponse(int, byte[], Map<String, String>, boolean, long) - Constructor for class com.mopub.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.mopub.volley.NetworkResponse
Creates a new network response.
NetworkResponse(int, byte[], Map<String, String>, boolean) - Constructor for class com.mopub.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.mopub.volley.NetworkResponse
Creates a new network response for an OK response with no headers.
NetworkResponse(byte[], Map<String, String>) - Constructor for class com.mopub.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.mopub.volley.VolleyError
 
networkTimeMs - Variable in class com.mopub.volley.NetworkResponse
Network roundtrip time in milliseconds.
newFuture() - Static method in class com.mopub.volley.toolbox.RequestFuture
 
newRequestQueue(Context, BaseHttpStack) - Static method in class com.mopub.volley.toolbox.Volley
Creates a default instance of the worker pool and calls RequestQueue.start() on it.
NoCache - Class in com.mopub.volley.toolbox
A cache that doesn't.
NoCache() - Constructor for class com.mopub.volley.toolbox.NoCache
 
NoConnectionError - Exception in com.mopub.volley
Error indicating that no connection could be established when performing a Volley request.
NoConnectionError() - Constructor for exception com.mopub.volley.NoConnectionError
 
NoConnectionError(Throwable) - Constructor for exception com.mopub.volley.NoConnectionError
 
notModified - Variable in class com.mopub.volley.NetworkResponse
True if the server returned a 304 (Not Modified).

O

onDetachedFromWindow() - Method in class com.mopub.volley.toolbox.NetworkImageView
 
onErrorResponse(VolleyError) - Method in interface com.mopub.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.mopub.volley.toolbox.RequestFuture
 
onGetImageError(String, VolleyError) - Method in class com.mopub.volley.toolbox.ImageLoader
Handler for when an image failed to load.
onGetImageSuccess(String, Bitmap) - Method in class com.mopub.volley.toolbox.ImageLoader
Handler for when an image was successfully loaded.
onLayout(boolean, int, int, int, int) - Method in class com.mopub.volley.toolbox.NetworkImageView
 
onRequestEvent(Request<?>, int) - Method in interface com.mopub.volley.RequestQueue.RequestEventListener
Called on every request lifecycle event.
onRequestFinished(Request<T>) - Method in interface com.mopub.volley.RequestQueue.RequestFinishedListener
Deprecated.
Called when a request has finished processing.
onResponse(T) - Method in interface com.mopub.volley.Response.Listener
Called when a response is received.
onResponse(ImageLoader.ImageContainer, boolean) - Method in interface com.mopub.volley.toolbox.ImageLoader.ImageListener
Listens for non-error changes to the loading of the image request.
onResponse(T) - Method in class com.mopub.volley.toolbox.RequestFuture
 
OPTIONS - Static variable in interface com.mopub.volley.Request.Method
 

P

parseCacheHeaders(NetworkResponse) - Static method in class com.mopub.volley.toolbox.HttpHeaderParser
Extracts a Cache.Entry from a NetworkResponse.
parseCharset(Map<String, String>, String) - Static method in class com.mopub.volley.toolbox.HttpHeaderParser
Retrieve a charset from headers
parseCharset(Map<String, String>) - Static method in class com.mopub.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.mopub.volley.toolbox.HttpHeaderParser
Parse date in RFC1123 format, and return its value as epoch
ParseError - Exception in com.mopub.volley
Indicates that the server's response could not be parsed.
ParseError() - Constructor for exception com.mopub.volley.ParseError
 
ParseError(NetworkResponse) - Constructor for exception com.mopub.volley.ParseError
 
ParseError(Throwable) - Constructor for exception com.mopub.volley.ParseError
 
parseNetworkError(VolleyError) - Method in class com.mopub.volley.Request
Subclasses can override this method to parse 'networkError' and return a more specific error.
parseNetworkResponse(NetworkResponse) - Method in class com.mopub.volley.Request
Subclasses must implement this to parse the raw network response and return an appropriate response type.
parseNetworkResponse(NetworkResponse) - Method in class com.mopub.volley.toolbox.ClearCacheRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.mopub.volley.toolbox.ImageRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.mopub.volley.toolbox.JsonArrayRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.mopub.volley.toolbox.JsonObjectRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.mopub.volley.toolbox.JsonRequest
 
parseNetworkResponse(NetworkResponse) - Method in class com.mopub.volley.toolbox.StringRequest
 
PATCH - Static variable in interface com.mopub.volley.Request.Method
 
performRequest(Request<?>) - Method in interface com.mopub.volley.Network
Performs the specified request.
performRequest(Request<?>) - Method in class com.mopub.volley.toolbox.BasicNetwork
 
PoolingByteArrayOutputStream - Class in com.mopub.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.mopub.volley.toolbox.PoolingByteArrayOutputStream
Constructs a new PoolingByteArrayOutputStream with a default size.
PoolingByteArrayOutputStream(ByteArrayPool, int) - Constructor for class com.mopub.volley.toolbox.PoolingByteArrayOutputStream
Constructs a new ByteArrayOutputStream with a default size of size bytes.
POST - Static variable in interface com.mopub.volley.Request.Method
 
postError(Request<?>, VolleyError) - Method in class com.mopub.volley.ExecutorDelivery
 
postError(Request<?>, VolleyError) - Method in interface com.mopub.volley.ResponseDelivery
Posts an error for the given request.
postResponse(Request<?>, Response<?>) - Method in class com.mopub.volley.ExecutorDelivery
 
postResponse(Request<?>, Response<?>, Runnable) - Method in class com.mopub.volley.ExecutorDelivery
 
postResponse(Request<?>, Response<?>) - Method in interface com.mopub.volley.ResponseDelivery
Parses a response from the network or cache and delivers it.
postResponse(Request<?>, Response<?>, Runnable) - Method in interface com.mopub.volley.ResponseDelivery
Parses a response from the network or cache and delivers it.
PROTOCOL_CHARSET - Static variable in class com.mopub.volley.toolbox.JsonRequest
Default charset for JSON request.
put(String, Cache.Entry) - Method in interface com.mopub.volley.Cache
Adds or replaces an entry to the cache.
PUT - Static variable in interface com.mopub.volley.Request.Method
 
put(String, Cache.Entry) - Method in class com.mopub.volley.toolbox.DiskBasedCache
Puts the entry with the specified key into the cache.
put(String, Cache.Entry) - Method in class com.mopub.volley.toolbox.NoCache
 
putBitmap(String, Bitmap) - Method in interface com.mopub.volley.toolbox.ImageLoader.ImageCache
 

Q

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

R

refreshNeeded() - Method in class com.mopub.volley.Cache.Entry
True if a refresh is needed from the original data source.
remove(String) - Method in interface com.mopub.volley.Cache
Removes an entry from the cache.
remove(String) - Method in class com.mopub.volley.toolbox.DiskBasedCache
Removes the specified key from the cache if it exists.
remove(String) - Method in class com.mopub.volley.toolbox.NoCache
 
removeRequestEventListener(RequestQueue.RequestEventListener) - Method in class com.mopub.volley.RequestQueue
Remove a listener for request life cycle events.
removeRequestFinishedListener(RequestQueue.RequestFinishedListener<T>) - Method in class com.mopub.volley.RequestQueue
Deprecated.
Request<T> - Class in com.mopub.volley
Base class for all network requests.
Request(String, Response.ErrorListener) - Constructor for class com.mopub.volley.Request
Request(int, String, Response.ErrorListener) - Constructor for class com.mopub.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.mopub.volley
Supported request methods.
Request.Priority - Enum in com.mopub.volley
Priority values.
REQUEST_CACHE_LOOKUP_FINISHED - Static variable in annotation type com.mopub.volley.RequestQueue.RequestEvent
Cache lookup finished for the request and cached response is delivered or request is queued for network dispatching.
REQUEST_CACHE_LOOKUP_STARTED - Static variable in annotation type com.mopub.volley.RequestQueue.RequestEvent
Cache lookup started for the request.
REQUEST_FINISHED - Static variable in annotation type com.mopub.volley.RequestQueue.RequestEvent
All the work associated with the request is finished and request is removed from all the queues.
REQUEST_NETWORK_DISPATCH_FINISHED - Static variable in annotation type com.mopub.volley.RequestQueue.RequestEvent
The network dispatch finished for the request and response (if any) is delivered.
REQUEST_NETWORK_DISPATCH_STARTED - Static variable in annotation type com.mopub.volley.RequestQueue.RequestEvent
Network dispatch started for the request.
REQUEST_QUEUED - Static variable in annotation type com.mopub.volley.RequestQueue.RequestEvent
The request was added to the queue.
RequestFuture<T> - Class in com.mopub.volley.toolbox
A Future that represents a Volley request.
RequestQueue - Class in com.mopub.volley
A request dispatch queue with a thread pool of dispatchers.
RequestQueue(Cache, Network, int, ResponseDelivery) - Constructor for class com.mopub.volley.RequestQueue
Creates the worker pool.
RequestQueue(Cache, Network, int) - Constructor for class com.mopub.volley.RequestQueue
Creates the worker pool.
RequestQueue(Cache, Network) - Constructor for class com.mopub.volley.RequestQueue
Creates the worker pool.
RequestQueue.RequestEvent - Annotation Type in com.mopub.volley
Request event types the listeners RequestQueue.RequestEventListener will be notified about.
RequestQueue.RequestEventListener - Interface in com.mopub.volley
Callback interface for request life cycle events.
RequestQueue.RequestFilter - Interface in com.mopub.volley
A simple predicate or filter interface for Requests, for use by RequestQueue.cancelAll(RequestFilter).
RequestQueue.RequestFinishedListener<T> - Interface in com.mopub.volley
Deprecated.
Response<T> - Class in com.mopub.volley
Encapsulates a parsed response for delivery.
Response.ErrorListener - Interface in com.mopub.volley
Callback interface for delivering error responses.
Response.Listener<T> - Interface in com.mopub.volley
Callback interface for delivering parsed responses.
ResponseDelivery - Interface in com.mopub.volley
 
responseHeaders - Variable in class com.mopub.volley.Cache.Entry
Response headers as received from server; must be non-null.
result - Variable in class com.mopub.volley.Response
Parsed response, or null in the case of error.
retry(VolleyError) - Method in class com.mopub.volley.DefaultRetryPolicy
Prepares for the next retry by applying a backoff to the timeout.
retry(VolleyError) - Method in interface com.mopub.volley.RetryPolicy
Prepares for the next retry by applying a backoff to the timeout.
RetryPolicy - Interface in com.mopub.volley
Retry policy for a request.
returnBuf(byte[]) - Method in class com.mopub.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.mopub.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.mopub.volley.CacheDispatcher
 
run() - Method in class com.mopub.volley.NetworkDispatcher
 

S

serverDate - Variable in class com.mopub.volley.Cache.Entry
Date of this response as reported by the server.
ServerError - Exception in com.mopub.volley
Indicates that the server responded with an error response.
ServerError(NetworkResponse) - Constructor for exception com.mopub.volley.ServerError
 
ServerError() - Constructor for exception com.mopub.volley.ServerError
 
setBatchedResponseDelay(int) - Method in class com.mopub.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.mopub.volley.Request
Annotates this request with an entry retrieved for it from cache.
setDefaultImageBitmap(Bitmap) - Method in class com.mopub.volley.toolbox.NetworkImageView
Sets the default image bitmap to be used for this view until the attempt to load it completes.
setDefaultImageResId(int) - Method in class com.mopub.volley.toolbox.NetworkImageView
Sets the default image resource ID to be used for this view until the attempt to load it completes.
setErrorImageBitmap(Bitmap) - Method in class com.mopub.volley.toolbox.NetworkImageView
Sets the error image bitmap to be used for this view in the event that the image requested fails to load.
setErrorImageResId(int) - Method in class com.mopub.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.mopub.volley.toolbox.NetworkImageView
Sets URL of the image that should be loaded into this view.
setRequest(Request<?>) - Method in class com.mopub.volley.toolbox.RequestFuture
 
setRequestQueue(RequestQueue) - Method in class com.mopub.volley.Request
Associates this request with the given queue.
setRetryPolicy(RetryPolicy) - Method in class com.mopub.volley.Request
Sets the retry policy for this request.
setSequence(int) - Method in class com.mopub.volley.Request
Sets the sequence number of this request.
setShouldCache(boolean) - Method in class com.mopub.volley.Request
Set whether or not responses to this request should be cached.
setShouldRetryServerErrors(boolean) - Method in class com.mopub.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.mopub.volley.Request
Set a tag on this request.
setTag(String) - Static method in class com.mopub.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.mopub.volley.Request
Returns true if responses to this request should be cached.
shouldRetryServerErrors() - Method in class com.mopub.volley.Request
Returns true if this request should be retried in the event of an HTTP 5xx (server) error.
softTtl - Variable in class com.mopub.volley.Cache.Entry
Soft TTL for this record.
start() - Method in class com.mopub.volley.RequestQueue
Starts the dispatchers in this queue.
statusCode - Variable in class com.mopub.volley.NetworkResponse
The HTTP status code.
stop() - Method in class com.mopub.volley.RequestQueue
Stops the cache and network dispatchers.
StringRequest - Class in com.mopub.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.mopub.volley.toolbox.StringRequest
Creates a new request with the given method.
StringRequest(String, Response.Listener<String>, Response.ErrorListener) - Constructor for class com.mopub.volley.toolbox.StringRequest
Creates a new GET request.
success(T, Cache.Entry) - Static method in class com.mopub.volley.Response
Returns a successful response containing the parsed result.

T

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

V

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

W

write(byte[], int, int) - Method in class com.mopub.volley.toolbox.PoolingByteArrayOutputStream
 
write(int) - Method in class com.mopub.volley.toolbox.PoolingByteArrayOutputStream
 
wtf(String, Object...) - Static method in class com.mopub.volley.VolleyLog
 
wtf(Throwable, String, Object...) - Static method in class com.mopub.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