com.atlassian.mail
Class Email

java.lang.Object
  extended by com.atlassian.mail.Email

public class Email
extends java.lang.Object


Constructor Summary
Email(java.lang.String to)
          Note: By default the message has the "Precedence" header set to "bulk".
Email(java.lang.String to, java.lang.String cc, java.lang.String bcc)
          Note: By default the message has the "Precedence" header set to "bulk".
 
Method Summary
 void addHeader(java.lang.String headerName, java.lang.String headerValue)
           
 boolean equals(java.lang.Object o)
          Body is NOT included in comparing two Email objects
 java.lang.String getBcc()
           
 java.lang.String getBody()
           
 java.lang.String getCc()
           
 java.lang.String getEncoding()
           
 java.lang.String getFrom()
           
 java.lang.String getFromName()
           
 java.util.Map getHeaders()
           
 java.lang.String getInReplyTo()
           
 java.lang.String getMessageId()
           
 java.lang.String getMimeType()
           
 javax.mail.Multipart getMultipart()
           
 java.lang.String getReplyTo()
           
 java.lang.String getSubject()
           
 java.lang.String getTo()
           
 int hashCode()
          Body is NOT included in calculating the hashCode for the object.
protected  void loadDefaultHeaders()
           
 java.lang.String removeHeader(java.lang.String headerName)
           
 Email setBcc(java.lang.String bcc)
           
 Email setBody(java.lang.String body)
           
 Email setCc(java.lang.String cc)
           
 Email setEncoding(java.lang.String encoding)
           
 Email setFrom(java.lang.String from)
           
 Email setFromName(java.lang.String fromName)
           
 Email setInReplyTo(java.lang.String inReplyTo)
           
 void setMessageId(java.lang.String messageId)
           
 Email setMimeType(java.lang.String mimeType)
           
 Email setMultipart(javax.mail.Multipart multipart)
           
 Email setReplyTo(java.lang.String replyTo)
           
 Email setSubject(java.lang.String subject)
           
 Email setTo(java.lang.String to)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Email

public Email(java.lang.String to)
Note: By default the message has the "Precedence" header set to "bulk". Use removeHeader(java.lang.String) to remove

Parameters:
to -

Email

public Email(java.lang.String to,
             java.lang.String cc,
             java.lang.String bcc)
Note: By default the message has the "Precedence" header set to "bulk". Use removeHeader(java.lang.String) to remove

Parameters:
to -
Method Detail

loadDefaultHeaders

protected void loadDefaultHeaders()

setFrom

public Email setFrom(java.lang.String from)

setFromName

public Email setFromName(java.lang.String fromName)

setTo

public Email setTo(java.lang.String to)

setSubject

public Email setSubject(java.lang.String subject)

setCc

public Email setCc(java.lang.String cc)

setBcc

public Email setBcc(java.lang.String bcc)

setReplyTo

public Email setReplyTo(java.lang.String replyTo)

setInReplyTo

public Email setInReplyTo(java.lang.String inReplyTo)

setBody

public Email setBody(java.lang.String body)

setMimeType

public Email setMimeType(java.lang.String mimeType)

setEncoding

public Email setEncoding(java.lang.String encoding)

setMultipart

public Email setMultipart(javax.mail.Multipart multipart)

getFrom

public java.lang.String getFrom()

getFromName

public java.lang.String getFromName()

getTo

public java.lang.String getTo()

getSubject

public java.lang.String getSubject()

getCc

public java.lang.String getCc()

getBcc

public java.lang.String getBcc()

getReplyTo

public java.lang.String getReplyTo()

getInReplyTo

public java.lang.String getInReplyTo()

getBody

public java.lang.String getBody()

getMimeType

public java.lang.String getMimeType()

getEncoding

public java.lang.String getEncoding()

getMultipart

public javax.mail.Multipart getMultipart()

getMessageId

public java.lang.String getMessageId()

setMessageId

public void setMessageId(java.lang.String messageId)

equals

public boolean equals(java.lang.Object o)
Body is NOT included in comparing two Email objects

Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:

hashCode

public int hashCode()
Body is NOT included in calculating the hashCode for the object.

Overrides:
hashCode in class java.lang.Object
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addHeader

public void addHeader(java.lang.String headerName,
                      java.lang.String headerValue)

removeHeader

public java.lang.String removeHeader(java.lang.String headerName)
Parameters:
headerName -
Returns:
the value of the removed header

getHeaders

public java.util.Map getHeaders()


Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.