planet.generic.commonapi.message
Class DataMessage
java.lang.Object
planet.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataMessage
public DataMessage(Id key,
Message msg)
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()