|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.event.DefaultMessageEvent
public class DefaultMessageEvent
An MessageEvent is fired to a set of MessageListeners by the DWR
Hub.
| Constructor Summary | |
|---|---|
DefaultMessageEvent(Hub hub,
ConverterManager converterManager,
RealRawData rawData)
Constructor for use with client-side originated messages |
|
DefaultMessageEvent(Hub hub,
java.lang.Object data)
Constructor for use with server-side originated messages |
|
| Method Summary | ||
|---|---|---|
|
getData(java.lang.Class<T> asType)
We convert the data (if the message is from the client) as late as possible so the message recipient can choose what type it should be. |
|
Hub |
getHub()
|
|
java.lang.Object |
getRawData()
WARNING: This method is for internal use only. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessageEvent(Hub hub,
java.lang.Object data)
hub - The hub used to send the datadata - The data to publish
public DefaultMessageEvent(Hub hub,
ConverterManager converterManager,
RealRawData rawData)
hub - The hub used to send the dataconverterManager - rawData - | Method Detail |
|---|
public Hub getHub()
getHub in interface MessageEventEventObject.getSource()public <T> T getData(java.lang.Class<T> asType)
MessageEvent
getData in interface MessageEventT - The type that we are converting toasType - The type that we are converting to
public java.lang.Object getRawData()
getRawData in interface MessageEvent
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||