Package android.webkit
Class RoboCookieManager
java.lang.Object
android.webkit.CookieManager
android.webkit.RoboCookieManager
public class RoboCookieManager extends CookieManager
Robolectric implementation of
CookieManager
.
Basic implementation which does not fully implement RFC2109.
-
Constructor Summary
Constructors Constructor Description RoboCookieManager()
-
Method Summary
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
-
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
-