public abstract class CefCookieManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
deleteCookies(java.lang.String url,
java.lang.String cookieName)
Delete all cookies that match the specified parameters.
|
abstract void |
dispose()
Removes the native reference from an unused object.
|
protected void |
finalize() |
abstract boolean |
flushStore(CefCompletionCallback handler)
Flush the backing store (if any) to disk.
|
static CefCookieManager |
getGlobalManager()
Returns the global cookie manager.
|
abstract boolean |
setCookie(java.lang.String url,
CefCookie cookie)
Sets a cookie given a valid URL and explicit user-provided cookie attributes.
|
abstract boolean |
visitAllCookies(CefCookieVisitor visitor)
Visit all cookies.
|
abstract boolean |
visitUrlCookies(java.lang.String url,
boolean includeHttpOnly,
CefCookieVisitor visitor)
Visit a subset of cookies.
|
public abstract boolean deleteCookies(java.lang.String url,
java.lang.String cookieName)
url - The cookie URL to delete or null.cookieName - The cookie name to delete or null.public abstract void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic abstract boolean flushStore(CefCompletionCallback handler)
handler - Callback that will be executed on the UI thread upon completion.public static final CefCookieManager getGlobalManager()
public abstract boolean setCookie(java.lang.String url,
CefCookie cookie)
url - The cookie URL.cookie - The cookie attributes.public abstract boolean visitAllCookies(CefCookieVisitor visitor)
visitor - Callback that will receive cookies on the UI thread.public abstract boolean visitUrlCookies(java.lang.String url,
boolean includeHttpOnly,
CefCookieVisitor visitor)
url - Results are filtered by the given url scheme, host, domain and path.includeHttpOnly - If true HTTP-only cookies will also be included in the results.visitor - Callback that will receive cookies on the UI thread.