Package android.webkit
Class RoboCookieManager
java.lang.Object
android.webkit.CookieManager
android.webkit.RoboCookieManager
Robolectric implementation of
CookieManager
.
Basic implementation which does not fully implement RFC2109.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
acceptThirdPartyCookies
(WebView webView) protected boolean
void
flush()
boolean
boolean
hasCookies
(boolean b) void
void
removeAllCookies
(ValueCallback<Boolean> valueCallback) void
void
void
removeSessionCookies
(ValueCallback<Boolean> valueCallback) void
setAcceptCookie
(boolean accept) protected void
setAcceptFileSchemeCookiesImpl
(boolean b) void
setAcceptThirdPartyCookies
(WebView webView, boolean b) void
void
setCookie
(String url, String value, ValueCallback<Boolean> valueCallback) Methods inherited from class android.webkit.CookieManager
allowFileSchemeCookies, clone, getCookie, getInstance, setAcceptFileSchemeCookies
-
Constructor Details
-
RoboCookieManager
public RoboCookieManager()
-
-
Method Details
-
setCookie
- Specified by:
setCookie
in classCookieManager
-
setCookie
- Specified by:
setCookie
in classCookieManager
-
setAcceptThirdPartyCookies
- Specified by:
setAcceptThirdPartyCookies
in classCookieManager
-
acceptThirdPartyCookies
- Specified by:
acceptThirdPartyCookies
in classCookieManager
-
removeAllCookies
- Specified by:
removeAllCookies
in classCookieManager
-
flush
public void flush()- Specified by:
flush
in classCookieManager
-
removeSessionCookies
- Specified by:
removeSessionCookies
in classCookieManager
-
getCookie
- Specified by:
getCookie
in classCookieManager
-
getCookie
- Specified by:
getCookie
in classCookieManager
-
setAcceptCookie
public void setAcceptCookie(boolean accept) - Specified by:
setAcceptCookie
in classCookieManager
-
acceptCookie
public boolean acceptCookie()- Specified by:
acceptCookie
in classCookieManager
-
removeAllCookie
public void removeAllCookie()- Specified by:
removeAllCookie
in classCookieManager
-
removeExpiredCookie
public void removeExpiredCookie()- Specified by:
removeExpiredCookie
in classCookieManager
-
hasCookies
public boolean hasCookies()- Specified by:
hasCookies
in classCookieManager
-
hasCookies
public boolean hasCookies(boolean b) - Specified by:
hasCookies
in classCookieManager
-
removeSessionCookie
public void removeSessionCookie()- Specified by:
removeSessionCookie
in classCookieManager
-
allowFileSchemeCookiesImpl
protected boolean allowFileSchemeCookiesImpl()- Specified by:
allowFileSchemeCookiesImpl
in classCookieManager
-
setAcceptFileSchemeCookiesImpl
protected void setAcceptFileSchemeCookiesImpl(boolean b) - Specified by:
setAcceptFileSchemeCookiesImpl
in classCookieManager
-