Package 

Class LazyHeaders

  • All Implemented Interfaces:
    com.mobwith.imgmodule.load.model.Headers

    
    public final class LazyHeaders
     implements Headers
                        

    A wrapper class for a set of headers to be included in a ImageModule request, allowing headers to be constructed lazily.

    Ideally headers are constructed once and then re-used for multiple loads, rather then being constructed individually for each load.

    This class is thread safe.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class LazyHeaders.Builder

      Adds an LazyHeaderFactory that will be used to construct a value for the given key*lazily on a background thread.

      This class is not thread safe.

      This class may include default values for User-Agent and Accept-Encoding headers. These willbe replaced by calls to either setHeader or , even though addHeader wouldusually append an additional value.

    • Method Summary

      Modifier and Type Method Description
      String toString()
      boolean equals(Object o)
      int hashCode()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait