public static class VolleyStreamFetcher.GlideRequest
extends com.android.volley.Request<byte[]>
Request
implementation for Glide that receives errors and
results on volley's background thread.Constructor and Description |
---|
GlideRequest(String url,
DataFetcher.DataCallback<? super InputStream> callback,
com.android.volley.Request.Priority priority) |
GlideRequest(String url,
DataFetcher.DataCallback<? super InputStream> callback,
com.android.volley.Request.Priority priority,
Map<String,String> headers) |
Modifier and Type | Method and Description |
---|---|
protected void |
deliverResponse(byte[] response) |
Map<String,String> |
getHeaders() |
com.android.volley.Request.Priority |
getPriority() |
protected com.android.volley.VolleyError |
parseNetworkError(com.android.volley.VolleyError volleyError) |
protected com.android.volley.Response<byte[]> |
parseNetworkResponse(com.android.volley.NetworkResponse response) |
addMarker, cancel, compareTo, deliverError, getBody, getBodyContentType, getCacheEntry, getCacheKey, getErrorListener, getMethod, getParams, getParamsEncoding, getPostBody, getPostBodyContentType, getPostParams, getPostParamsEncoding, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, markDelivered, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toString
public GlideRequest(String url, DataFetcher.DataCallback<? super InputStream> callback, com.android.volley.Request.Priority priority)
public GlideRequest(String url, DataFetcher.DataCallback<? super InputStream> callback, com.android.volley.Request.Priority priority, Map<String,String> headers)
public Map<String,String> getHeaders()
getHeaders
in class com.android.volley.Request<byte[]>
public com.android.volley.Request.Priority getPriority()
getPriority
in class com.android.volley.Request<byte[]>
protected com.android.volley.VolleyError parseNetworkError(com.android.volley.VolleyError volleyError)
parseNetworkError
in class com.android.volley.Request<byte[]>
protected com.android.volley.Response<byte[]> parseNetworkResponse(com.android.volley.NetworkResponse response)
parseNetworkResponse
in class com.android.volley.Request<byte[]>
protected void deliverResponse(byte[] response)
deliverResponse
in class com.android.volley.Request<byte[]>