org.directwebremoting.event
Interface MessageEvent

All Known Implementing Classes:
DefaultMessageEvent

public interface MessageEvent

An MessageEvent is fired to a set of MessageListeners by the DWR Hub.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Method Summary
<T> T
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.
 

Method Detail

getHub

Hub getHub()
Returns:
the hub that processed this message
See Also:
EventObject.getSource()

getData

<T> T 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.

Type Parameters:
T - The type that we are converting to
Parameters:
asType - The type that we are converting to
Returns:
The data coerced into the required type

getRawData

java.lang.Object getRawData()
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.

Returns:
The original data probably of type RawData

Copyright 2008