public abstract class CefCookieManager
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
abstract boolean |
deleteCookies(java.lang.String url, java.lang.String cookieName)
Delete all cookies that match the specified parameters.
(删除所有与指定参数匹配的cookie。)
|
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.
(返回全局cookie管理器。)
|
abstract boolean |
setCookie(java.lang.String url, CefCookie cookie)
Sets a cookie given a valid URL and explicit user-provided cookie attributes.
(设置一个具有有效URL和用户明确提供的cookie属性的cookie。)
|
abstract void |
setSupportedSchemes(java.util.Vector<java.lang.String> schemes, boolean includeDefaults)
Set the schemes supported by this manager.
(设置此管理器支持的方案。)
|
abstract boolean |
visitAllCookies(CefCookieVisitor visitor)
Visit all cookies.
(访问所有cookie。)
|
abstract boolean |
visitUrlCookies(java.lang.String url, boolean includeHttpOnly, CefCookieVisitor visitor)
Visit a subset of cookies.
(访问部分Cookie。)
|
public abstract boolean deleteCookies(java.lang.String url, java.lang.String cookieName)
url
- The cookie URL to delete or null.
(-要删除的Cookie URL或为空。)
cookieName
- The cookie name to delete or null.
(-要删除的Cookie名称,或者为null。)
public abstract void dispose()
protected void finalize() throws java.lang.Throwable
finalize
在类中
java.lang.Object
java.lang.Throwable
public abstract boolean flushStore(CefCompletionCallback handler)
handler
- Callback that will be executed on the UI thread upon completion.
(-完成后将在UI线程上执行的回调。)
public static final CefCookieManager getGlobalManager()
public abstract boolean setCookie(java.lang.String url, CefCookie cookie)
url
- The cookie URL.
(-Cookie网址。)
cookie
- The cookie attributes.
(-Cookie属性。)
public abstract void setSupportedSchemes(java.util.Vector<java.lang.String> schemes, boolean includeDefaults)
schemes
- List of supported schemes.
(-支持的方案列表。)
includeDefaults
- If true the default schemes ("http", "https", "ws" and "wss") will also be supported.
(-如果为true,则还支持默认方案(“ http”,“ https”,“ ws”和“ wss”)。)
public abstract boolean visitAllCookies(CefCookieVisitor visitor)
visitor
- Callback that will receive cookies on the UI thread.
(-回调将在UI线程上接收cookie。)
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.
(-如果结果为纯HTTP,则cookie也将包含在结果中。)
visitor
- Callback that will receive cookies on the UI thread.
(-回调将在UI线程上接收cookie。)