ePOST API

rice.post.messaging
Class NotificationMessage

java.lang.Object
  extended by rice.post.messaging.PostMessage
      extended by rice.post.messaging.NotificationMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EmailNotificationMessage

public abstract class NotificationMessage
extends PostMessage

This class represents an abstract message in the Post system which serves as a notification. Each Post application should extend this class with each type of relevant notification message.

See Also:
Serialized Form

Constructor Summary
NotificationMessage(PostClientAddress clientAddress, PostEntityAddress sender, PostEntityAddress destination)
          Constructs a NotificationMessage for the given Email.
 
Method Summary
 PostClientAddress getClientAddress()
          Returns the PostClientAddress of the application to which this message should be delievered
 PostEntityAddress getDestination()
          Returns the PostEntityAddress of the user or group to which this noticiation should be delivered.
 
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

NotificationMessage

public NotificationMessage(PostClientAddress clientAddress,
                           PostEntityAddress sender,
                           PostEntityAddress destination)
Constructs a NotificationMessage for the given Email.

Parameters:
clientAddress - The address of the service to which this message should be delivered.
destination - The address of the user or group to which this message should be delivered.
Method Detail

getDestination

public PostEntityAddress getDestination()
Returns the PostEntityAddress of the user or group to which this noticiation should be delivered.

Returns:
The address of the user or group to which this should be delivered

getClientAddress

public PostClientAddress getClientAddress()
Returns the PostClientAddress of the application to which this message should be delievered

Returns:
The address of the service to which this message should be delivered

ePOST API

Copyright © 2001-2005 - Rice Pastry.