Package de.uplanet.lucy.server.mail
Class ParsedMessage
java.lang.Object
de.uplanet.lucy.server.mail.ParsedMessage
A parsed message with information about a mail.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class (builder pattern). -
Method Summary
Modifier and TypeMethodDescriptionstatic ParsedMessage.Builder
createBuilder
(List<javax.mail.Address> p_strSenders, List<javax.mail.Address> p_recipients) Create a new builder instance.List
<javax.mail.Address> List
<javax.mail.Address> javax.mail.Address
List
<javax.mail.Address>
-
Method Details
-
createBuilder
public static ParsedMessage.Builder createBuilder(List<javax.mail.Address> p_strSenders, List<javax.mail.Address> p_recipients) Create a new builder instance.- Parameters:
p_strSenders
- The sender(s) of the mail.p_recipients
- The recipient(s) of the mail.- Returns:
- The builder instance.
-
getPlainTextContent
- Returns:
- The plain text content (if no plain text is in the mail it is extracted from the HTML content).
-
getRawHTMLContent
- Returns:
- The raw HTML content (not sanitized - if the mail has no HTML content it is created from the plain text).
-
getHTMLContent
- Returns:
- The HTML content (if the mail has no HTML content it is created from the plain text).
-
getSenders
- Returns:
- The senders.
-
getSender
public javax.mail.Address getSender()- Returns:
- The sender.
-
getRecipients
- Returns:
- The recipients.
-
getRecipientsCc
- Returns:
- The Cc-recipients (an empty set if non is specified in the mail).
-
getAttachments
- Returns:
- The attachments (an empty set if non is specified in the mail).
-