public interface AppCookie
extends com.google.gwt.user.client.rpc.IsSerializable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCookie(java.lang.String name)
Cookies are Tasklet/Weblet properties that can used by a Tasklet as it runs.
|
void |
setCookie(java.lang.String name,
java.lang.String value)
Cookies set here will not be made persistent on the server until the
WebletContext.saveAppCookie() has been made. |
java.lang.String getCookie(java.lang.String name)
Cookies are Tasklet/Weblet properties that can used by a Tasklet as it runs.
This method returns only APP_SCOPE
cookie properties. APP_SCOPE
cookies are name/value properties shared between all running
jobs. These cookies are shared between all job runs and can be viewed by the
Weblet/RuntimeViewer GUI interfaces associated with a Tasklet.
name
- Name of the cookie.void setCookie(java.lang.String name, java.lang.String value)
WebletContext.saveAppCookie()
has been made.
Note, if you need to save complex data structures in the Cookie, for viewing by the Weblet later, it is recommended you save this as a serialized JSON string. This can then be parsed more efficiently by the GWT Weblet for display in the GUI.
Copyright © Grand Logic, Inc. All Rights Reserved.