java.lang.Object | |
↳ | android.webkit.CookieManager |
CookieManager manages cookies according to RFC2109 spec.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return whether cookie is enabled
| |||||||||||
Get cookie(s) for a given url so that it can be set to "cookie:" in http
request header.
| |||||||||||
Get a singleton CookieManager.
| |||||||||||
Return true if there are stored cookies.
| |||||||||||
Remove all cookies
| |||||||||||
Remove all expired cookies
| |||||||||||
Remove all session cookies, which are cookies without expiration date
| |||||||||||
Control whether cookie is enabled or disabled
| |||||||||||
Set cookie for a given url.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns a copy of this
Object . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Return whether cookie is enabled
Get cookie(s) for a given url so that it can be set to "cookie:" in http request header.
url | The url needs cookie |
---|
Get a singleton CookieManager. If this is called before any
WebView
is created or outside of WebView
context, the
caller needs to call createInstance(Context)
first.
Return true if there are stored cookies.
Remove all session cookies, which are cookies without expiration date
Control whether cookie is enabled or disabled
accept | TRUE if accept cookie |
---|
Set cookie for a given url. The old cookie with same host/path/name will be removed. The new cookie will be added if it is not expired or it does not have expiration which implies it is session cookie.
url | The url which cookie is set for |
---|---|
value | The value for set-cookie: in http response header |
Creates and returns a copy of this Object
. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.
CloneNotSupportedException |
---|