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