public class MailSenderTransformer extends Object implements org.apache.commons.collections.Transformer, Sender<String,javax.mail.internet.InternetAddress>
mailerService
and messageSettings
; the Transformer
will return the input for chaining if #outputTransformer
is nullConstructor and Description |
---|
MailSenderTransformer() |
Modifier and Type | Method and Description |
---|---|
protected String |
getMailContent(Object input) |
MailerService |
getMailerService() |
EmailMessage |
getMessageSettings() |
protected Object |
getOutput(Object input) |
boolean |
isRunAsynch()
If true will send Asynchronously
|
protected void |
runAsynch(Object input) |
protected void |
send(Object input) |
Object |
send(String payload,
javax.mail.internet.InternetAddress recipient) |
protected void |
send(String mailContent,
List<javax.mail.internet.InternetAddress> addresses) |
void |
setMailerService(MailerService mailerService) |
void |
setMessageSettings(EmailMessage messageSettings) |
void |
setRunAsynch(boolean runAsynch)
If true will send Asynchronously
|
Object |
transform(Object input) |
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public Object send(String payload, javax.mail.internet.InternetAddress recipient) throws Exception
protected void send(String mailContent, List<javax.mail.internet.InternetAddress> addresses) throws Exception
Exception
protected void runAsynch(Object input)
public MailerService getMailerService()
public void setMailerService(MailerService mailerService)
public EmailMessage getMessageSettings()
public void setMessageSettings(EmailMessage messageSettings)
public boolean isRunAsynch()
public void setRunAsynch(boolean runAsynch)
Copyright © 2018. All rights reserved.