com.ibm.itim.mail
Class NotificationMessage

java.lang.Object
  |
  +--com.ibm.itim.mail.NotificationMessage
All Implemented Interfaces:
java.io.Serializable

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

Represents an email message with recipients, subject, a plain text message, and an optional HTML message. Both a plain text AND HTML formatted body is supported within the same message.

See Also:
Serialized Form

Constructor Summary
NotificationMessage()
          Default constructor.
NotificationMessage(java.util.Collection addresses, java.lang.String subject, java.lang.String textMessage, java.lang.String htmlMessage)
          The constructor of NotificationMessage.
 
Method Summary
 java.util.Collection getEmailAddresses()
          Returns the recipients of the message.
 java.lang.String getHtmlMessage()
          Returns the HTML message body (if any).
 java.lang.String getMessage()
          Returns the text message body.
 java.lang.String getSubject()
          Returns the subject of the message.
 void setEmailAddresses(java.util.Collection addresses)
          Changes the recipients of the message.
 void setHtmlMessage(java.lang.String htmlMessage)
          Change sthe HTML message body.
 void setMessage(java.lang.String textMessage)
          Changes the text body of the message.
 void setSubject(java.lang.String subject)
          Changes the subject of the message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationMessage

public NotificationMessage()
Default constructor.

NotificationMessage

public NotificationMessage(java.util.Collection addresses,
                           java.lang.String subject,
                           java.lang.String textMessage,
                           java.lang.String htmlMessage)
The constructor of NotificationMessage.
Parameters:
addresses - The collection of email address (Strings).
subject - The subject.
textMessage - The plain text message.
htmlMessage - The HTML message.
Method Detail

getEmailAddresses

public java.util.Collection getEmailAddresses()
Returns the recipients of the message.
Returns:
Collection of recipients (Strings).

setEmailAddresses

public void setEmailAddresses(java.util.Collection addresses)
Changes the recipients of the message.
Parameters:
addresses - Collection of the new recipients (Strings).

getSubject

public java.lang.String getSubject()
Returns the subject of the message.
Returns:
Subject of the message.

setSubject

public void setSubject(java.lang.String subject)
Changes the subject of the message.
Parameters:
aSubject - New message subject.

getMessage

public java.lang.String getMessage()
Returns the text message body.
Returns:
Plain text message body.

setMessage

public void setMessage(java.lang.String textMessage)
Changes the text body of the message.
Parameters:
aMsg - New text body.

getHtmlMessage

public java.lang.String getHtmlMessage()
Returns the HTML message body (if any).
Returns:
HTML message body content.

setHtmlMessage

public void setHtmlMessage(java.lang.String htmlMessage)
Change sthe HTML message body.
Parameters:
aMsg - String holding the new HTML formatted message body.