ePOST API

rice.email.messaging
Class EmailNotificationMessage

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

public class EmailNotificationMessage
extends NotificationMessage

This class represents an notification in the email service that a new email is available for the recipient of this email.

See Also:
Serialized Form

Constructor Summary
EmailNotificationMessage(Email email, PostEntityAddress recipient, EmailService service)
          Constructs a EmailNotificationMessage for the given Email.
 
Method Summary
 Email getEmail()
          Returns the email which this notification is for.
 
Methods inherited from class rice.post.messaging.NotificationMessage
getClientAddress, getDestination
 
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

EmailNotificationMessage

public EmailNotificationMessage(Email email,
                                PostEntityAddress recipient,
                                EmailService service)
Constructs a EmailNotificationMessage for the given Email.

Parameters:
email - The email that is available
recipient - the PostUserAddress to recieve the Email
service - the EmailService to use to send the message
Method Detail

getEmail

public Email getEmail()
Returns the email which this notification is for.

Returns:
The Email contained in this notification

ePOST API

Copyright © 2001-2005 - Rice Pastry.