planet.generic.commonapi.message
Class DataMessage

java.lang.Object
  extended byplanet.generic.commonapi.message.DataMessage
All Implemented Interfaces:
Message, java.io.Serializable

public class DataMessage
extends java.lang.Object
implements Message

Message of data to be send over the underlying network. This Message is created by the EndPoint to save both key and message sended by the application.

Author:
Jordi Pujol Date: 01/07/2004
See Also:
Serialized Form

Constructor Summary
DataMessage(Id key, Message msg)
           
 
Method Summary
 Message getMessage()
           
 Id getMessageKey()
           
 void setMessage(Message msg)
           
 void setMessageKey(Id messageKey)
           
 java.lang.String toString()
          Shows a String representation of this DataMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataMessage

public DataMessage(Id key,
                   Message msg)
Method Detail

getMessageKey

public Id getMessageKey()
Returns:
Returns the messageKey.

setMessageKey

public void setMessageKey(Id messageKey)
Parameters:
messageKey - The messageKey to set.

getMessage

public Message getMessage()
Returns:
Returns the msg.

setMessage

public void setMessage(Message msg)
Parameters:
msg - The msg to set.

toString

public java.lang.String toString()
Shows a String representation of this DataMessage

Returns:
String representation of this DataMessage
See Also:
Object.toString()


il">METHOD