Package de.uplanet.lucy.server.mail
Class ParsedMessage.Builder
java.lang.Object
de.uplanet.lucy.server.mail.ParsedMessage.Builder
- Enclosing class:
ParsedMessage
Builder class (builder pattern).
-
Method Summary
Modifier and TypeMethodDescriptionaddAttachment
(Attachment p_attachment) Add an attachment.create()
setHTMLContent
(String p_strHTMLContent) Set the HTML content.setPlainTextContent
(String p_strPlainTextContent) Set the plain text content.setRecipientsCc
(List<javax.mail.Address> p_recipientsCc) Set the Cc recipients
-
Method Details
-
setRecipientsCc
Set the Cc recipients- Parameters:
p_recipientsCc
- The Cc recipients.- Returns:
- This builder instance.
-
setPlainTextContent
Set the plain text content.- Parameters:
p_strPlainTextContent
- The plain text content.- Returns:
- This builder instance.
-
setHTMLContent
Set the HTML content.- Parameters:
p_strHTMLContent
- The HTML content.- Returns:
- This builder instance.
-
addAttachment
Add an attachment.- Parameters:
p_attachment
- The attachment to add.- Returns:
- This builder instance.
-
create
- Returns:
- A new parsed message instance.
-