Class EmailHeaderBuilders.InReplyToHeaderBuilder

java.lang.Object
com.atlassian.jira.mail.threading.EmailHeaderBuilders.InReplyToHeaderBuilder
Enclosing class:
EmailHeaderBuilders

public static class EmailHeaderBuilders.InReplyToHeaderBuilder extends Object

Responsible for building the string value for the In-Reply-To header included in JIRA's email notifications. Format of String is:

<JIRA.${issue-id}.${created-date-millis}@${hostY}>

created-date-millis can be the String "null" if at some point the issue corresponding to issue-id had its created-date set to null.

  • Constructor Details

    • InReplyToHeaderBuilder

      public InReplyToHeaderBuilder(Issue issue)
  • Method Details

    • setHostName

      public EmailHeaderBuilders.InReplyToHeaderBuilder setHostName(String hostName)
    • setDropMillis

      public EmailHeaderBuilders.InReplyToHeaderBuilder setDropMillis(boolean dropMillis)
    • build

      public String build()
      It is important that this method wraps the resulting String with angle brackets, since this is NOT the responsibility of the caller, in contrast to the build method in the MessageIdBuilder class.
      Returns:
      a String representation of the In-Reply-To email header value.