public class RoboCookieManager
extends android.webkit.CookieManager
Robolectric implementation of CookieManager
.
Basic implementation which does not fully implement RFC2109.
Constructor and Description |
---|
RoboCookieManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptCookie() |
boolean |
acceptThirdPartyCookies(android.webkit.WebView webView) |
protected boolean |
allowFileSchemeCookiesImpl() |
void |
flush() |
java.lang.String |
getCookie(java.lang.String url) |
java.lang.String |
getCookie(java.lang.String s,
boolean b) |
boolean |
hasCookies() |
boolean |
hasCookies(boolean b) |
void |
removeAllCookie() |
void |
removeAllCookies(android.webkit.ValueCallback<java.lang.Boolean> valueCallback) |
void |
removeExpiredCookie() |
void |
removeSessionCookie() |
void |
removeSessionCookies(android.webkit.ValueCallback<java.lang.Boolean> valueCallback) |
void |
setAcceptCookie(boolean accept) |
protected void |
setAcceptFileSchemeCookiesImpl(boolean b) |
void |
setAcceptThirdPartyCookies(android.webkit.WebView webView,
boolean b) |
void |
setCookie(java.lang.String url,
java.lang.String value) |
void |
setCookie(java.lang.String s,
java.lang.String s1,
android.webkit.ValueCallback<java.lang.Boolean> valueCallback) |
public void setCookie(java.lang.String url, java.lang.String value)
setCookie
in class android.webkit.CookieManager
public void setCookie(java.lang.String s, java.lang.String s1, android.webkit.ValueCallback<java.lang.Boolean> valueCallback)
setCookie
in class android.webkit.CookieManager
public void setAcceptThirdPartyCookies(android.webkit.WebView webView, boolean b)
setAcceptThirdPartyCookies
in class android.webkit.CookieManager
public boolean acceptThirdPartyCookies(android.webkit.WebView webView)
acceptThirdPartyCookies
in class android.webkit.CookieManager
public void removeAllCookies(android.webkit.ValueCallback<java.lang.Boolean> valueCallback)
removeAllCookies
in class android.webkit.CookieManager
public void flush()
flush
in class android.webkit.CookieManager
public void removeSessionCookies(android.webkit.ValueCallback<java.lang.Boolean> valueCallback)
removeSessionCookies
in class android.webkit.CookieManager
public java.lang.String getCookie(java.lang.String url)
getCookie
in class android.webkit.CookieManager
public java.lang.String getCookie(java.lang.String s, boolean b)
getCookie
in class android.webkit.CookieManager
public void setAcceptCookie(boolean accept)
setAcceptCookie
in class android.webkit.CookieManager
public boolean acceptCookie()
acceptCookie
in class android.webkit.CookieManager
public void removeAllCookie()
removeAllCookie
in class android.webkit.CookieManager
public void removeExpiredCookie()
removeExpiredCookie
in class android.webkit.CookieManager
public boolean hasCookies()
hasCookies
in class android.webkit.CookieManager
public boolean hasCookies(boolean b)
hasCookies
in class android.webkit.CookieManager
public void removeSessionCookie()
removeSessionCookie
in class android.webkit.CookieManager
protected boolean allowFileSchemeCookiesImpl()
allowFileSchemeCookiesImpl
in class android.webkit.CookieManager
protected void setAcceptFileSchemeCookiesImpl(boolean b)
setAcceptFileSchemeCookiesImpl
in class android.webkit.CookieManager