edu.cmu.mse.vault.message
Class Message

java.lang.Object
  extended byedu.cmu.mse.vault.message.Message
All Implemented Interfaces:
java.io.Serializable

public class Message
extends java.lang.Object
implements java.io.Serializable

Message object returned to the client

Since:
1.0
Version:
1.0
Author:
gzenarosa
See Also:
Serialized Form

Constructor Summary
Message(MessageEntity me)
          Constructor
Message(MessageKey key, java.io.Serializable payload)
          Constructor
 
Method Summary
 MessageKey getKey()
          Retrieve the key for this message
 java.io.Serializable getPayload()
          Retrieve the payload of this message
 void setPayload(java.io.Serializable payload)
          Replace the payload of this message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(MessageKey key,
               java.io.Serializable payload)
Constructor

Parameters:
key - MessageKey to use for this message
payload - BLOB content of the message
Since:
1.0

Message

public Message(MessageEntity me)
Constructor

Since:
1.0
Method Detail

getKey

public MessageKey getKey()
Retrieve the key for this message

Returns:
the MessageKey object
Since:
1.0

getPayload

public java.io.Serializable getPayload()
Retrieve the payload of this message

Returns:
Since:
1.0

setPayload

public void setPayload(java.io.Serializable payload)
Replace the payload of this message

Returns:
Since:
1.0