org.csapi.jr.se.mmm
Class MessageReceivedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.csapi.jr.se.mmm.MessageReceivedEvent
All Implemented Interfaces:
java.io.Serializable

public final class MessageReceivedEvent
extends java.util.EventObject

Event created by an activity object to indicate that a Gateway originated call to the messageReceived() method on the callback interface has occurred.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageReceivedEvent(java.lang.Object source, byte[] message, MessageHeaderField[] headers)
          Constructor for the MessageReceivedEvent Event.
 
Method Summary
 MessageHeaderField[] getHeaders()
          This method is used to retrieve the parameter value of 'headers' passed up from the Gateway in it's call to the messageReceived() method, used on the creation of this event.
 byte[] getMessage()
          This method is used to retrieve the parameter value of 'message' passed up from the Gateway in it's call to the messageReceived() method, used on the creation of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageReceivedEvent

public MessageReceivedEvent(java.lang.Object source,
                            byte[] message,
                            MessageHeaderField[] headers)
Constructor for the MessageReceivedEvent Event.

Parameters:
source - Reference to the object firing the event.
Method Detail

getMessage

public byte[] getMessage()
This method is used to retrieve the parameter value of 'message' passed up from the Gateway in it's call to the messageReceived() method, used on the creation of this event.

Returns:
The value of 'message' used on creation of this event.

getHeaders

public MessageHeaderField[] getHeaders()
This method is used to retrieve the parameter value of 'headers' passed up from the Gateway in it's call to the messageReceived() method, used on the creation of this event.

Returns:
The value of 'headers' used on creation of this event.