|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.export.System
public class System
Various functions exported by DWR to help us with various book-keeping duties.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_DWRSESSIONID
Session attribute for DWRSESSIONID |
| Constructor Summary | |
|---|---|
System()
|
|
| Method Summary | |
|---|---|
void |
activateCallback(java.lang.String key,
RealRawData data)
Used by reverse ajax proxies to send data back to the server |
void |
checkHeartbeat()
A method designed to be called when the client is offline. |
java.lang.String |
generateId()
Generates and returns a new unique id suitable to use for the CSRF session cookie. |
void |
pageLoaded()
A method designed to be called on page load so the client knows about the http and script sessions. |
void |
pageUnloaded()
Call ScriptSession.invalidate() on the ScriptSession
that called this method. |
void |
publish(java.lang.String topic,
RealRawData data)
Something has published to the client side 'hub' and we're getting to know about it. |
void |
subscribe(java.lang.String topic,
java.lang.String subscriptionId)
Ensure that the clients know about server publishes |
boolean |
unsubscribe(java.lang.String subscriptionId)
Stop notifications of against a subscription id |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_DWRSESSIONID
| Constructor Detail |
|---|
public System()
| Method Detail |
|---|
public java.lang.String generateId()
public void pageLoaded()
public void checkHeartbeat()
public void pageUnloaded()
ScriptSession.invalidate() on the ScriptSession
that called this method.
Used by the page unloader.
public void activateCallback(java.lang.String key,
RealRawData data)
key - The unique id under which a callback is registereddata - The data to decode and pass to the callback
public void publish(java.lang.String topic,
RealRawData data)
topic - The topic that has been published todata - The published data
public void subscribe(java.lang.String topic,
java.lang.String subscriptionId)
topic - The topic being subscribed tosubscriptionId - The ID to pass back to link to client side datapublic boolean unsubscribe(java.lang.String subscriptionId)
subscriptionId - The ID to pass back to link to client side data
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||