|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
System()
|
|
| Method Summary | |
|---|---|
void |
activateCallback(java.lang.String key,
RawData data)
Used by reverse ajax proxies to send data back to the server |
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,
RawData 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 |
| Constructor Detail |
|---|
public System()
| Method Detail |
|---|
public void pageLoaded()
public void pageUnloaded()
ScriptSession.invalidate() on the ScriptSession
that called this method.
Used by the page unloader.
public void activateCallback(java.lang.String key,
RawData 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,
RawData 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 ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||