Class OkHttpUrlLoader.Factory

  • All Implemented Interfaces:
    com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,​java.io.InputStream>
    Enclosing class:
    OkHttpUrlLoader

    public static class OkHttpUrlLoader.Factory
    extends java.lang.Object
    implements com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,​java.io.InputStream>
    The default factory for OkHttpUrlLoaders.
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory()
      Constructor for a new Factory that runs requests using a static singleton client.
      Factory​(okhttp3.Call.Factory client)
      Constructor for a new Factory that runs requests using given client.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,​java.io.InputStream> build​(com.bumptech.glide.load.model.MultiModelLoaderFactory multiFactory)  
      void teardown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Factory

        public Factory()
        Constructor for a new Factory that runs requests using a static singleton client.
      • Factory

        public Factory​(@NonNull
                       okhttp3.Call.Factory client)
        Constructor for a new Factory that runs requests using given client.
        Parameters:
        client - this is typically an instance of OkHttpClient.
    • Method Detail

      • build

        @NonNull
        public com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,​java.io.InputStream> build​(com.bumptech.glide.load.model.MultiModelLoaderFactory multiFactory)
        Specified by:
        build in interface com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,​java.io.InputStream>
      • teardown

        public void teardown()
        Specified by:
        teardown in interface com.bumptech.glide.load.model.ModelLoaderFactory<com.bumptech.glide.load.model.GlideUrl,​java.io.InputStream>