| java.lang.Object java.util.EventObject org.directwebremoting.event.MessageEvent
MessageEvent | public class MessageEvent extends EventObject (Code) | | An MessageEvent is fired to a set of
MessageListener s by the DWR
Hub .
author: Joe Walker [joe at getahead dot ltd dot uk] |
Method Summary | |
public T | getData(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. | public Hub | getHub() | public Object | getRawData() WARNING: This method is for internal use only. |
MessageEvent | public MessageEvent(Hub hub, Object data)(Code) | | Constructor for use with server-side originated messages
Parameters: hub - The hub used to send the data Parameters: data - The data to publish |
MessageEvent | public MessageEvent(Hub hub, ConverterManager converterManager, RawData rawData)(Code) | | Constructor for use with client-side originated messages
Parameters: hub - The hub used to send the data Parameters: converterManager - Parameters: rawData - |
getData | public T getData(Class<T> asType) throws MarshallException(Code) | | 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.
< Parameters: T - > The type that we are converting to Parameters: asType - The type that we are converting to The data coerced into the required type throws: MarshallException - If the data can not be coerced into required type |
getRawData | public Object getRawData()(Code) | | WARNING: This method is for internal use only. It may well disappear at
some stage in the future
Sometimes we just want to get at whatever the data was originally without
any conversion.
The original data probably of type RawData |
|
|