public class

MailMessageData

extends Object
java.lang.Object
   ↳ com.atlassian.fisheye.spi.data.MailMessageData

Class Overview

Encapsulation of a mail message. Permits setting of subject, body text (or multipart content), the content type, the sender, the sender's display name, recipients and SMTP headers.

Summary

Constants
String CONTENT_TYPE_HTML
String CONTENT_TYPE_TEXT
Public Constructors
MailMessageData()
Public Methods
void addHeader(String header, String value)
void addRecipient(String address)
String getBodyText()
String getContentType()
String getFrom()
String getFromDisplayName()
Map<StringString> getHeaders()
Multipart getMultipartContent()
List<String> getRecipients()
String getSubject()
boolean isAllowCustomBodyHeader()
void setAllowCustomBodyHeaders(boolean allow)
void setBodyText(String contentType, String bodyText)
void setFrom(String from)
void setFromDisplayName(String fromDisplayName)
void setMultiPartContent(Multipart multipartContent)
Add MultiPart to email.
void setSubject(String subject)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONTENT_TYPE_HTML

Constant Value: "text/html; charset=UTF-8"

public static final String CONTENT_TYPE_TEXT

Constant Value: "text/plain; charset=UTF-8"

Public Constructors

public MailMessageData ()

Public Methods

public void addHeader (String header, String value)

public void addRecipient (String address)

Parameters
address comma separated list of email addresses

public String getBodyText ()

public String getContentType ()

public String getFrom ()

public String getFromDisplayName ()

public Map<StringString> getHeaders ()

public Multipart getMultipartContent ()

public List<String> getRecipients ()

public String getSubject ()

public boolean isAllowCustomBodyHeader ()

public void setAllowCustomBodyHeaders (boolean allow)

public void setBodyText (String contentType, String bodyText)

public void setFrom (String from)

public void setFromDisplayName (String fromDisplayName)

public void setMultiPartContent (Multipart multipartContent)

Add MultiPart to email. If Multipart is set, then do not call setContent() as it will not be used. Please add your content to the MultiPart.

Parameters
multipartContent the multipart to add to the email.

public void setSubject (String subject)

public String toString ()