ePOST API

rice.post.messaging
Class DeliveryMessage

java.lang.Object
  extended by rice.post.messaging.PostMessage
      extended by rice.post.messaging.DeliveryMessage
All Implemented Interfaces:
java.io.Serializable

public class DeliveryMessage
extends PostMessage

This class wraps an EncrypedNotificationMessage and is used after the receipt of a PresenceMessage.

See Also:
Serialized Form

Constructor Summary
DeliveryMessage(PostEntityAddress sender, PostEntityAddress destination, Id id, SignedPostMessage message)
          Constructs a DeliveryMessage
 
Method Summary
 PostEntityAddress getDestination()
          Returns the destination of this message.
 SignedPostMessage getEncryptedMessage()
          Gets the EncryptedNotificationMessage which this is a Request for.
 Id getId()
           
 void setId(Id id)
           
 
Methods inherited from class rice.post.messaging.PostMessage
getSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeliveryMessage

public DeliveryMessage(PostEntityAddress sender,
                       PostEntityAddress destination,
                       Id id,
                       SignedPostMessage message)
Constructs a DeliveryMessage

Parameters:
sender - The sender of this delivery
message - The message to deliver, in encrypted state
Method Detail

getDestination

public final PostEntityAddress getDestination()
Returns the destination of this message.

Returns:
The destination

getEncryptedMessage

public SignedPostMessage getEncryptedMessage()
Gets the EncryptedNotificationMessage which this is a Request for. for.

Returns:
The internal message, in encrypted state

getId

public Id getId()

setId

public void setId(Id id)

ePOST API

Copyright © 2001-2005 - Rice Pastry.