Example usage for com.google.gwt.user.client Cookies setCookie

List of usage examples for com.google.gwt.user.client Cookies setCookie

Introduction

In this page you can find the example usage for com.google.gwt.user.client Cookies setCookie.

Prototype

public static void setCookie(String name, String value) 

Source Link

Document

Sets a cookie.

Usage

From source file:rtdc.web.client.impl.GwtStorage.java

License:Open Source License

/**
 * {@inheritDoc}
 */
@Override
public void add(String key, String data) {
    Cookies.setCookie(key, data);
}

From source file:tigase.jaxmpp.gwt.client.Jaxmpp.java

License:Open Source License

public void storeSession() {
    String s = ((GwtSessionObject) sessionObject).serialize();
    Cookies.setCookie(COOKIE_RID_KEY, s);
}

From source file:uk.ac.ebi.fg.annotare2.web.gwt.user.client.UserApp.java

License:Apache License

private void showNotice() {
    if (!"YEZ".equalsIgnoreCase(Cookies.getCookie(NOTICE_COOKIE))) {
        NotificationPopupPanel.warning(/*  w w  w . j a  v  a 2  s.  co m*/
                "Due to scheduled maintenance we will not be able to provide accession numbers or curate experiments from 1pm today until Tue 31 May.<br><br>"
                        + "You can still submit your experiments as usual and we will queue them for curation next week. Sorry for any inconvenience!",
                false, false);
        Cookies.setCookie(NOTICE_COOKIE, "YEZ");
    }
}