public class PersistentCookieJar extends java.lang.Object implements ClearableCookieJar
| Constructor and Description |
|---|
PersistentCookieJar(CookieCache cache,
CookiePersistor persistor) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all the cookies from persistence and from the cache.
|
void |
clearSession()
Clear all the session cookies while maintaining the persisted ones.
|
java.util.List<okhttp3.Cookie> |
loadForRequest(okhttp3.HttpUrl url) |
void |
saveFromResponse(okhttp3.HttpUrl url,
java.util.List<okhttp3.Cookie> cookies) |
public PersistentCookieJar(CookieCache cache, CookiePersistor persistor)
public void saveFromResponse(okhttp3.HttpUrl url,
java.util.List<okhttp3.Cookie> cookies)
saveFromResponse in interface okhttp3.CookieJarpublic java.util.List<okhttp3.Cookie> loadForRequest(okhttp3.HttpUrl url)
loadForRequest in interface okhttp3.CookieJarpublic void clearSession()
ClearableCookieJarclearSession in interface ClearableCookieJarpublic void clear()
ClearableCookieJarclear in interface ClearableCookieJar