| java.lang.Object com.google.gwt.user.client.Cookies
Cookies | public class Cookies (Code) | | 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.
|
rawCookies | static String rawCookies(Code) | | Raw cookie string stored to allow cached cookies to be invalidated on
write.
|
getCookie | public static String getCookie(String name)(Code) | | Gets the cookie associated with the given name.
Parameters: name - the name of the cookie to be retrieved the cookie's value, or null if the cookie doesn't exist |
getCookieNames | public static Collection<String> getCookieNames()(Code) | | Gets the names of all cookies in this page's domain.
the names of all cookies |
removeCookie | native public static void removeCookie(String name)(Code) | | Removes the cookie associated with the given name.
Parameters: name - the name of the cookie to be removed |
setCookie | public static void setCookie(String name, String value)(Code) | | Sets a cookie. The cookie will expire when the current browser session is
ended.
Parameters: name - the cookie's name Parameters: value - the cookie's value |
setCookie | public static void setCookie(String name, String value, Date expires)(Code) | | Sets a cookie.
Parameters: name - the cookie's name Parameters: value - the cookie's value Parameters: expires - when the cookie expires |
setCookie | public static void setCookie(String name, String value, Date expires, String domain, String path, boolean secure)(Code) | | Sets a cookie.
Parameters: name - the cookie's name Parameters: value - the cookie's value Parameters: expires - when the cookie expires Parameters: domain - the domain to be associated with this cookie Parameters: path - the path to be associated with this cookie Parameters: secure - true to make this a secure cookie |
|
|