com.atlassian.jira.mail.threading
Class EmailHeaderBuilders.InReplyToHeaderBuilder

java.lang.Object
  extended by 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 Summary
EmailHeaderBuilders.InReplyToHeaderBuilder(Issue issue)
           
 
Method Summary
 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.
 EmailHeaderBuilders.InReplyToHeaderBuilder setDropMillis(boolean dropMillis)
           
 EmailHeaderBuilders.InReplyToHeaderBuilder setHostName(String hostName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailHeaderBuilders.InReplyToHeaderBuilder

public EmailHeaderBuilders.InReplyToHeaderBuilder(Issue issue)
Method Detail

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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.