Package 

Interface LazyHeaderFactory


  • 
    public interface LazyHeaderFactory
    
                        

    An interface for lazily creating headers that allows expensive to calculate headers (oauth for example) to be generated in the background during the first fetch.

    Implementations should implement equals() and hashcode() .

    • Method Summary

      Modifier and Type Method Description
      abstract String buildHeader() Returns an http header, or {@code null} if no header could be built.
      • Methods inherited from class java.lang.Object

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

      • buildHeader

        @Nullable() abstract String buildHeader()

        Returns an http header, or {@code null} if no header could be built.

        Returning {@code null} or an empty String from this method will result in this particularkey/value being excluded from the headers provided in the request. If there are multiplefactories or values for a particular key, any non-null values will still be included for thatkey.