Class InboundEmailRejectionSender
- java.lang.Object
-
- com.google.gerrit.server.mail.send.OutgoingEmail
-
- com.google.gerrit.server.mail.send.InboundEmailRejectionSender
-
public class InboundEmailRejectionSender extends OutgoingEmail
Send an email to inform users that parsing their inbound email failed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InboundEmailRejectionSender.Factory
static class
InboundEmailRejectionSender.InboundEmailError
Used by the templating system to determine what error message should be sent
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.mail.send.OutgoingEmail
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData
-
-
Constructor Summary
Constructors Constructor Description InboundEmailRejectionSender(EmailArguments args, Address to, String threadId, InboundEmailRejectionSender.InboundEmailError reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
format()
Format the message body by callingOutgoingEmail.appendText(String)
.protected void
init()
Setup the message headers and envelope (TO, CC, BCC).protected void
setupSoyContext()
-
Methods inherited from class com.google.gerrit.server.mail.send.OutgoingEmail
addByAccountId, addByAccountId, addByEmail, addByEmail, addFooter, appendHtml, appendText, getFromLine, getGerritHost, getNameEmailFor, getNameFor, getSettingsUrl, getSoyContext, getSoyContextEmailData, getUserNameEmailFor, isRecipientAllowed, isRecipientAllowed, removeHeader, removeUser, send, setFrom, setHeader, setHeader, setMessageId, setNotify, shouldSendMessage, soyHtmlTemplate, textTemplate, useHtml
-
-
-
-
Constructor Detail
-
InboundEmailRejectionSender
@Inject public InboundEmailRejectionSender(EmailArguments args, Address to, String threadId, InboundEmailRejectionSender.InboundEmailError reason)
-
-
Method Detail
-
init
protected void init() throws com.google.gerrit.exceptions.EmailException
Description copied from class:OutgoingEmail
Setup the message headers and envelope (TO, CC, BCC).- Overrides:
init
in classOutgoingEmail
- Throws:
com.google.gerrit.exceptions.EmailException
- if an error occurred.
-
format
protected void format() throws com.google.gerrit.exceptions.EmailException
Description copied from class:OutgoingEmail
Format the message body by callingOutgoingEmail.appendText(String)
.- Specified by:
format
in classOutgoingEmail
- Throws:
com.google.gerrit.exceptions.EmailException
-
setupSoyContext
protected void setupSoyContext()
- Overrides:
setupSoyContext
in classOutgoingEmail
-
-