public class EntityMailSenderTransformer extends MailSenderTransformer
MailSenderTransformer that derives the recipients and the content from a single entity using additional Transformers
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 InternetAddresss 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 InternetAddresss from input entity. |
getMailerService, getMessageSettings, isRunAsynch, runAsynch, send, send, setMailerService, setMessageSettings, setRunAsynch, transformprotected String getMailContent(Object input)
getMailContent in class MailSenderTransformerprotected void send(Object input) throws Exception
send in class MailSenderTransformerExceptionprotected Object getOutput(Object input)
getOutput in class MailSenderTransformerpublic org.apache.commons.collections.Transformer getRecipientsTransformer()
List of InternetAddresss from input entity.public void setRecipientsTransformer(org.apache.commons.collections.Transformer recipientsTransformer)
List of InternetAddresss 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.