com.bumptech.glide.integration.okhttp3
Class OkHttpUrlLoader

java.lang.Object
  extended by com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader
All Implemented Interfaces:
com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream>

public class OkHttpUrlLoader
extends Object
implements com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream>

A simple model loader for fetching media over http/https using OkHttp.


Nested Class Summary
static class OkHttpUrlLoader.Factory
          The default factory for OkHttpUrlLoaders.
 
Constructor Summary
OkHttpUrlLoader(okhttp3.Call.Factory client)
           
 
Method Summary
 com.bumptech.glide.load.data.DataFetcher<InputStream> getResourceFetcher(com.bumptech.glide.load.model.GlideUrl model, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OkHttpUrlLoader

public OkHttpUrlLoader(okhttp3.Call.Factory client)
Method Detail

getResourceFetcher

public com.bumptech.glide.load.data.DataFetcher<InputStream> getResourceFetcher(com.bumptech.glide.load.model.GlideUrl model,
                                                                                int width,
                                                                                int height)
Specified by:
getResourceFetcher in interface com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream>