org.red5.compatibility.flex.messaging.messages
Class AbstractMessage

java.lang.Object
  extended by org.red5.compatibility.flex.messaging.messages.AbstractMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AsyncMessage

public class AbstractMessage
extends Object
implements Serializable

Base class for all Flex compatibility messages.

Author:
The Red5 Project (red5@osflash.org), Joachim Bauch (jojo@struktur.de)
See Also:
Serialized Form

Field Summary
 Object body
           
 String clientId
           
 String destination
           
 Map headers
           
 String messageId
           
 long timestamp
           
 long timeToLive
           
 
Constructor Summary
AbstractMessage()
          Initialize default message fields.
 
Method Summary
protected  void addParameters(StringBuilder result)
          Add message properties to string.
 String toString()
          Return string representation of the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

public long timestamp

headers

public Map headers

body

public Object body

messageId

public String messageId

timeToLive

public long timeToLive

clientId

public String clientId

destination

public String destination
Constructor Detail

AbstractMessage

public AbstractMessage()
Initialize default message fields.

Method Detail

addParameters

protected void addParameters(StringBuilder result)
Add message properties to string.

Parameters:
result - StringBuilder to add properties to

toString

public String toString()
Return string representation of the message.

Overrides:
toString in class Object
Returns:
value


Copyright © 2006-2009 The Red5 Project