public class EntityMailSenderTransformer extends MailSenderTransformer
MailSenderTransformer
that derives the recipients and the content from a single entity using additional Transformer
s
getOutput(Object)
.Constructor and Description |
---|
EntityMailSenderTransformer() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.collections.Transformer |
getContentTransformer()
Extracts the content from input entity.
|
protected String |
getMailContent(Object input) |
protected Object |
getOutput(Object input) |
org.apache.commons.collections.Transformer |
getRecipientsTransformer()
Extracts a
List of InternetAddress s from input entity. |
boolean |
isOutputToString()
Convenience method to produce a String output that mentioned the recipients the mail was sent to.
|
protected void |
send(Object input) |
void |
setContentTransformer(org.apache.commons.collections.Transformer contentTransformer)
Extracts the content from input entity.
|
void |
setOutputToString(boolean outputToString)
Convenience method to produce a String output that mentioned the recipients the mail was sent to.
|
void |
setRecipientsTransformer(org.apache.commons.collections.Transformer recipientsTransformer)
Extracts a
List of InternetAddress s from input entity. |
getMailerService, getMessageSettings, isRunAsynch, runAsynch, send, send, setMailerService, setMessageSettings, setRunAsynch, transform
protected String getMailContent(Object input)
getMailContent
in class MailSenderTransformer
protected void send(Object input) throws Exception
send
in class MailSenderTransformer
Exception
protected Object getOutput(Object input)
getOutput
in class MailSenderTransformer
public org.apache.commons.collections.Transformer getRecipientsTransformer()
List
of InternetAddress
s from input entity.public void setRecipientsTransformer(org.apache.commons.collections.Transformer recipientsTransformer)
List
of InternetAddress
s from input entity.public org.apache.commons.collections.Transformer getContentTransformer()
public void setContentTransformer(org.apache.commons.collections.Transformer contentTransformer)
public boolean isOutputToString()
public void setOutputToString(boolean outputToString)
Copyright © 2018. All rights reserved.