Class Email

java.lang.Object
com.atlassian.mail.Email
com.atlassian.jira.mail.Email
All Implemented Interfaces:
Serializable

public class Email extends com.atlassian.mail.Email
This is a wrapper class around the Email class from atlassian-mail. Its purpose is to ensure that the proper headers are present or absent as per JIRA configuration on construction.

e.g. Precedence Bulk and X-JIRA-FingerPrint

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    JIRA's custom mail header used to contain a magic fingerprint string "unique" to a JIRA instance, used for identification purposes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor specifying only the recipient.
    Email(String to, String cc, String bcc)
    Constructor including cc and bcc addresses.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.mail.Email
    setSubject(String subject)
     

    Methods inherited from class com.atlassian.mail.Email

    addHeader, equals, getBcc, getBody, getCc, getEncoding, getFrom, getFromName, getHeaders, getInReplyTo, getMessageId, getMimeType, getMultipart, getReplyTo, getSubject, getTo, hashCode, isExcludeSubjectPrefix, loadDefaultHeaders, removeHeader, setBcc, setBody, setCc, setEncoding, setExcludeSubjectPrefix, setFrom, setFromName, setInReplyTo, setMessageId, setMimeType, setMultipart, setReplyTo, setTo, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • HEADER_JIRA_FINGER_PRINT

      public static final String HEADER_JIRA_FINGER_PRINT
      JIRA's custom mail header used to contain a magic fingerprint string "unique" to a JIRA instance, used for identification purposes.
      See Also:
  • Constructor Details

    • Email

      public Email(String to)
      Constructor specifying only the recipient.
      Parameters:
      to - recipient.
    • Email

      public Email(String to, String cc, String bcc)
      Constructor including cc and bcc addresses.
      Parameters:
      to - recipient.
      cc - carbon copy recipient.
      bcc - blind carbon copy recipient.
  • Method Details

    • setSubject

      public com.atlassian.mail.Email setSubject(String subject)
      Overrides:
      setSubject in class com.atlassian.mail.Email