Class SessionCookieJar
java.lang.Object
com.appscend.utilities.SessionCookieJar
- All Implemented Interfaces:
okhttp3.CookieJar
In-memory, never persisted; accepts cookies from the original server only.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanList<okhttp3.Cookie> loadForRequest(okhttp3.HttpUrl url) voidsaveFromResponse(okhttp3.HttpUrl url, List<okhttp3.Cookie> incoming) static voidsetEnabled(boolean on) Process-wide switch; while off, every jar drops what it holds and neither stores nor sends cookies.
-
Constructor Details
-
SessionCookieJar
public SessionCookieJar()
-
-
Method Details
-
setEnabled
public static void setEnabled(boolean on) Process-wide switch; while off, every jar drops what it holds and neither stores nor sends cookies. -
isEnabled
public static boolean isEnabled() -
saveFromResponse
- Specified by:
saveFromResponsein interfaceokhttp3.CookieJar
-
loadForRequest
- Specified by:
loadForRequestin interfaceokhttp3.CookieJar
-