java.lang.Object | |
↳ | com.google.gwt.user.client.Cookies |
Provides access to browser cookies stored on the client. Because of browser restrictions, you will only be able to access cookies associated with the current page's domain.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the cookie associated with the given name.
| |||||||||||
Gets the names of all cookies in this page's domain.
| |||||||||||
Gets the URIencode flag.
| |||||||||||
Checks whether or not cookies are enabled or disabled.
| |||||||||||
Removes the cookie associated with the given name.
| |||||||||||
Removes the cookie associated with the given name.
| |||||||||||
Native method to remove a cookie with a path.
| |||||||||||
Sets a cookie.
| |||||||||||
Sets a cookie.
| |||||||||||
Sets a cookie.
| |||||||||||
Updates the URIencode flag and empties the cached cookies set.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the cookie associated with the given name.
name | the name of the cookie to be retrieved |
---|
null
if the cookie doesn't
exist
Gets the names of all cookies in this page's domain.
Gets the URIencode flag.
Checks whether or not cookies are enabled or disabled.
Removes the cookie associated with the given name.
name | the name of the cookie to be removed |
---|---|
path | the path to be associated with this cookie (which should match
the path given in setCookie(String, String) )
|
Removes the cookie associated with the given name.
name | the name of the cookie to be removed |
---|
Native method to remove a cookie with a path.
Sets a cookie. If uriEncoding is false, it checks the validity of name and value. Name: Must conform to RFC 2965. Not allowed: = , ; white space. Also can't begin with $. Value: No = or ;
name | the cookie's name |
---|---|
value | the cookie's value |
expires | when the cookie expires |
domain | the domain to be associated with this cookie |
path | the path to be associated with this cookie |
secure | true to make this a secure cookie (that is, only
accessible over an SSL connection)
|
Sets a cookie. The cookie will expire when the current browser session is ended.
name | the cookie's name |
---|---|
value | the cookie's value |
Sets a cookie.
name | the cookie's name |
---|---|
value | the cookie's value |
expires | when the cookie expires |
Updates the URIencode flag and empties the cached cookies set.