Class TextEmailMessage

java.lang.Object
com.atlassian.crowd.manager.mail.TextEmailMessage
All Implemented Interfaces:
EmailMessage
Direct Known Subclasses:
HtmlEmailMessage

public class TextEmailMessage extends Object implements EmailMessage
Represents a plain text email message.
  • Constructor Details

  • Method Details

    • getFrom

      public Optional<javax.mail.internet.InternetAddress> getFrom()
      Specified by:
      getFrom in interface EmailMessage
      Returns:
      Address of sender of this email, if overridden; by default sender is configured globally for the instance
    • getTo

      public Collection<javax.mail.internet.InternetAddress> getTo()
      Specified by:
      getTo in interface EmailMessage
      Returns:
      Recipients of this e-mail of type "To" (primary recipients)
    • getCc

      public Collection<javax.mail.internet.InternetAddress> getCc()
      Specified by:
      getCc in interface EmailMessage
      Returns:
      Recipients of this e-mail of type "Cc" (carbon copy)
    • getBcc

      public Collection<javax.mail.internet.InternetAddress> getBcc()
      Specified by:
      getBcc in interface EmailMessage
      Returns:
      Recipients of this e-mail of type "Bcc" (blind carbon copy)
    • getReplyTo

      public Collection<javax.mail.internet.InternetAddress> getReplyTo()
      Specified by:
      getReplyTo in interface EmailMessage
      Returns:
      Addresses sent as "Reply-to".
    • getBody

      public String getBody()
      Specified by:
      getBody in interface EmailMessage
      Returns:
      Body of the email message
    • getSubject

      public String getSubject()
      Specified by:
      getSubject in interface EmailMessage
      Returns:
      Subject of the email message
    • getHeaders

      public Map<String,String> getHeaders()
      Specified by:
      getHeaders in interface EmailMessage
      Returns:
      Headers of the email message
    • getAttachments

      public Map<String,javax.activation.DataSource> getAttachments()
      Specified by:
      getAttachments in interface EmailMessage
      Returns:
      Attachments of the email message
    • builder

      public static TextEmailMessage.Builder builder()
    • builder

      public static TextEmailMessage.Builder builder(TextEmailMessage textEmailMessage)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object