© 2002 BEA Systems, Inc.


com.bea.p13n.mail
Class MailMessage

java.lang.Object
  |
  +--com.bea.p13n.mail.MailMessage

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

Class to represent an email message and it's supporting data.

See Also:
Serialized Form

Constructor Summary
MailMessage()
           
 
Method Summary
 void addHeader(java.lang.String name, java.lang.String value)
           
 java.lang.String getFrom()
          Get the value of from.
 java.util.Map getHeaders()
          Get the value of headers.
 java.lang.String getMessageText()
          Get the value of messageText.
 MailRecipients getRecipients()
          Get the value of recipients.
 java.lang.String getSubject()
          Get the value of subject.
 void setFrom(java.lang.String v)
          Set the value of from.
 void setHeaders(java.util.Map v)
          Set the value of headers.
 void setMessageText(java.lang.String v)
          Set the value of messageText.
 void setRecipients(MailRecipients v)
          Set the value of recipients.
 void setSubject(java.lang.String v)
          Set the value of subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailMessage

public MailMessage()
Method Detail

getRecipients

public MailRecipients getRecipients()
Get the value of recipients.

Returns:
Value of recipients.

setRecipients

public void setRecipients(MailRecipients v)
Set the value of recipients.

Parameters:
v - Value to assign to recipients.

getHeaders

public java.util.Map getHeaders()
Get the value of headers.

Returns:
Value of headers.

setHeaders

public void setHeaders(java.util.Map v)
Set the value of headers.

Parameters:
v - Value to assign to headers.

addHeader

public void addHeader(java.lang.String name,
                      java.lang.String value)


getSubject

public java.lang.String getSubject()
Get the value of subject.

Returns:
Value of subject.

setSubject

public void setSubject(java.lang.String v)
Set the value of subject.

Parameters:
v - Value to assign to subject.

getFrom

public java.lang.String getFrom()
Get the value of from.

Returns:
Value of from.

setFrom

public void setFrom(java.lang.String v)
Set the value of from.

Parameters:
v - Value to assign to from.

getMessageText

public java.lang.String getMessageText()
Get the value of messageText.

Returns:
Value of messageText.

setMessageText

public void setMessageText(java.lang.String v)
Set the value of messageText.

Parameters:
v - Value to assign to messageText.

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved