Class ParsedMessage.Builder

java.lang.Object
de.uplanet.lucy.server.mail.ParsedMessage.Builder
Enclosing class:
ParsedMessage

public static class ParsedMessage.Builder extends Object
Builder class (builder pattern).
  • Method Details

    • setRecipientsCc

      public ParsedMessage.Builder setRecipientsCc(List<javax.mail.Address> p_recipientsCc)
      Set the Cc recipients
      Parameters:
      p_recipientsCc - The Cc recipients.
      Returns:
      This builder instance.
    • setPlainTextContent

      public ParsedMessage.Builder setPlainTextContent(String p_strPlainTextContent)
      Set the plain text content.
      Parameters:
      p_strPlainTextContent - The plain text content.
      Returns:
      This builder instance.
    • setHTMLContent

      public ParsedMessage.Builder setHTMLContent(String p_strHTMLContent)
      Set the HTML content.
      Parameters:
      p_strHTMLContent - The HTML content.
      Returns:
      This builder instance.
    • addAttachment

      public ParsedMessage.Builder addAttachment(Attachment p_attachment)
      Add an attachment.
      Parameters:
      p_attachment - The attachment to add.
      Returns:
      This builder instance.
    • create

      public ParsedMessage create()
      Returns:
      A new parsed message instance.