|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.directwebremoting.event.MessageEvent
public class MessageEvent
An MessageEvent is fired to a set of MessageListeners by the DWR
Hub.
| Constructor Summary | |
|---|---|
MessageEvent(Hub hub,
ConverterManager converterManager,
RawData rawData)
Constructor for use with client-side originated messages |
|
MessageEvent(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.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MessageEvent(Hub hub,
java.lang.Object data)
hub - The hub used to send the datadata - The data to publish
public MessageEvent(Hub hub,
ConverterManager converterManager,
RawData rawData)
hub - The hub used to send the dataconverterManager - rawData - | Method Detail |
|---|
public Hub getHub()
EventObject.getSource()
public <T> T getData(java.lang.Class<T> asType)
throws MarshallException
T - The type that we are converting toasType - The type that we are converting to
MarshallException - If the data can not be coerced into required typepublic java.lang.Object getRawData()
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||