public class InboundEmailRejectionSender extends OutgoingEmail
Modifier and Type | Class and Description |
---|---|
static class |
InboundEmailRejectionSender.Error
Used by the templating system to determine what error message should be sent
|
static interface |
InboundEmailRejectionSender.Factory |
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData
Constructor and Description |
---|
InboundEmailRejectionSender(EmailArguments ea,
com.google.gerrit.mail.Address to,
java.lang.String threadId,
InboundEmailRejectionSender.Error reason) |
Modifier and Type | Method and Description |
---|---|
protected void |
format()
Format the message body by calling
OutgoingEmail.appendText(String) . |
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
protected void |
setupSoyContext() |
protected boolean |
supportsHtml()
Override this method to enable HTML in a subclass.
|
add, add, add, add, add, add, add, add, addByEmail, addByEmail, appendHtml, appendText, getFromLine, getGerritHost, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, isVisibleTo, removeHeader, removeUser, send, setFrom, setHeader, setHeader, setNotify, shouldSendMessage, soyHtmlTemplate, textTemplate, useHtml
@Inject public InboundEmailRejectionSender(EmailArguments ea, com.google.gerrit.mail.Address to, java.lang.String threadId, InboundEmailRejectionSender.Error reason)
protected void init() throws com.google.gerrit.exceptions.EmailException
OutgoingEmail
init
in class OutgoingEmail
com.google.gerrit.exceptions.EmailException
- if an error occurred.protected void format() throws com.google.gerrit.exceptions.EmailException
OutgoingEmail
OutgoingEmail.appendText(String)
.format
in class OutgoingEmail
com.google.gerrit.exceptions.EmailException
protected void setupSoyContext()
setupSoyContext
in class OutgoingEmail
protected boolean supportsHtml()
OutgoingEmail
supportsHtml
in class OutgoingEmail