Class VolleyStreamFetcher.GlideRequest

java.lang.Object
com.android.volley.Request<byte[]>
com.bumptech.glide.integration.volley.VolleyStreamFetcher.GlideRequest
All Implemented Interfaces:
Comparable<com.android.volley.Request<byte[]>>
Enclosing class:
VolleyStreamFetcher

public static class VolleyStreamFetcher.GlideRequest extends com.android.volley.Request<byte[]>
Default Request implementation for Glide that receives errors and results on volley's background thread.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.android.volley.Request

    com.android.volley.Request.Method, com.android.volley.Request.Priority
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlideRequest(String url, com.bumptech.glide.load.data.DataFetcher.DataCallback<? super InputStream> callback, com.android.volley.Request.Priority priority)
     
    GlideRequest(String url, com.bumptech.glide.load.data.DataFetcher.DataCallback<? super InputStream> callback, com.android.volley.Request.Priority priority, Map<String,String> headers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    deliverResponse(byte[] response)
     
     
    com.android.volley.Request.Priority
     
    protected com.android.volley.VolleyError
    parseNetworkError(com.android.volley.VolleyError volleyError)
     
    protected com.android.volley.Response<byte[]>
    parseNetworkResponse(com.android.volley.NetworkResponse response)
     

    Methods inherited from class com.android.volley.Request

    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, setShouldRetryConnectionErrors, setShouldRetryServerErrors, setTag, shouldCache, shouldRetryConnectionErrors, shouldRetryServerErrors, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GlideRequest

      public GlideRequest(String url, com.bumptech.glide.load.data.DataFetcher.DataCallback<? super InputStream> callback, com.android.volley.Request.Priority priority)
    • GlideRequest

      public GlideRequest(String url, com.bumptech.glide.load.data.DataFetcher.DataCallback<? super InputStream> callback, com.android.volley.Request.Priority priority, Map<String,String> headers)
  • Method Details

    • getHeaders

      public Map<String,String> getHeaders()
      Overrides:
      getHeaders in class com.android.volley.Request<byte[]>
    • getPriority

      public com.android.volley.Request.Priority getPriority()
      Overrides:
      getPriority in class com.android.volley.Request<byte[]>
    • parseNetworkError

      protected com.android.volley.VolleyError parseNetworkError(com.android.volley.VolleyError volleyError)
      Overrides:
      parseNetworkError in class com.android.volley.Request<byte[]>
    • parseNetworkResponse

      protected com.android.volley.Response<byte[]> parseNetworkResponse(com.android.volley.NetworkResponse response)
      Specified by:
      parseNetworkResponse in class com.android.volley.Request<byte[]>
    • deliverResponse

      protected void deliverResponse(byte[] response)
      Specified by:
      deliverResponse in class com.android.volley.Request<byte[]>