|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.Cookies
public class 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.
Method Summary | |
---|---|
static java.lang.String |
getCookie(java.lang.String key)
Gets the cookie associated with the given key. |
static void |
setCookie(java.lang.String name,
java.lang.String value,
java.util.Date expires)
Sets a cookie. |
static void |
setCookie(java.lang.String name,
java.lang.String value,
java.util.Date expires,
java.lang.String domain,
java.lang.String path,
boolean secure)
Sets a cookie. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getCookie(java.lang.String key)
key
- the key of the cookie to be retrieved
public static void setCookie(java.lang.String name, java.lang.String value, java.util.Date expires)
name
- the cookie's namevalue
- the cookie's valueexpires
- when the cookie expirespublic static void setCookie(java.lang.String name, java.lang.String value, java.util.Date expires, java.lang.String domain, java.lang.String path, boolean secure)
name
- the cookie's namevalue
- the cookie's valueexpires
- when the cookie expiresdomain
- the domain to be associated with this cookiepath
- the path to be associated with this cookiesecure
- true
to make this a secure cookie
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |