public class RoboCookieManager extends 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(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 s,
String s1,
ValueCallback<Boolean> valueCallback) |
allowFileSchemeCookies, clone, getCookie, getInstance, setAcceptFileSchemeCookies
public void setCookie(String url, String value)
setCookie
in class CookieManager
public void setCookie(String s, String s1, ValueCallback<Boolean> valueCallback)
setCookie
in class CookieManager
public void setAcceptThirdPartyCookies(WebView webView, boolean b)
setAcceptThirdPartyCookies
in class CookieManager
public boolean acceptThirdPartyCookies(WebView webView)
acceptThirdPartyCookies
in class CookieManager
public void removeAllCookies(ValueCallback<Boolean> valueCallback)
removeAllCookies
in class CookieManager
public void flush()
flush
in class CookieManager
public void removeSessionCookies(ValueCallback<Boolean> valueCallback)
removeSessionCookies
in class CookieManager
public String getCookie(String url)
getCookie
in class CookieManager
public String getCookie(String s, boolean b)
getCookie
in class CookieManager
public void setAcceptCookie(boolean accept)
setAcceptCookie
in class CookieManager
public boolean acceptCookie()
acceptCookie
in class CookieManager
public void removeAllCookie()
removeAllCookie
in class CookieManager
public void removeExpiredCookie()
removeExpiredCookie
in class CookieManager
public boolean hasCookies()
hasCookies
in class CookieManager
public boolean hasCookies(boolean b)
hasCookies
in class CookieManager
public void removeSessionCookie()
removeSessionCookie
in class CookieManager
protected boolean allowFileSchemeCookiesImpl()
allowFileSchemeCookiesImpl
in class CookieManager
protected void setAcceptFileSchemeCookiesImpl(boolean b)
setAcceptFileSchemeCookiesImpl
in class CookieManager