Class ServiceCookieJar

  • All Implemented Interfaces:
    okhttp3.CookieJar

    public final class ServiceCookieJar
    extends java.lang.Object
    implements okhttp3.CookieJar
    This is an adapter that uses JavaNetCookieJar.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface okhttp3.CookieJar

        okhttp3.CookieJar.Companion
    • Field Summary

      • Fields inherited from interface okhttp3.CookieJar

        Companion, NO_COOKIES
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceCookieJar​(java.net.CookieHandler cookieHandler)
      Instantiates a new ServiceCookieJar.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<okhttp3.Cookie> loadForRequest​(okhttp3.HttpUrl url)  
      void saveFromResponse​(okhttp3.HttpUrl url, java.util.List<okhttp3.Cookie> cookies)  
      • Methods inherited from class java.lang.Object

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

      • ServiceCookieJar

        public ServiceCookieJar​(java.net.CookieHandler cookieHandler)
        Instantiates a new ServiceCookieJar.
        Parameters:
        cookieHandler - the cookie handler
    • Method Detail

      • saveFromResponse

        public void saveFromResponse​(okhttp3.HttpUrl url,
                                     java.util.List<okhttp3.Cookie> cookies)
        Specified by:
        saveFromResponse in interface okhttp3.CookieJar
      • loadForRequest

        public java.util.List<okhttp3.Cookie> loadForRequest​(okhttp3.HttpUrl url)
        Specified by:
        loadForRequest in interface okhttp3.CookieJar