|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.adapter.mail.AbstractMailHeaderGenerator
public abstract class AbstractMailHeaderGenerator
Base implementation for MailHeaderGenerators
.
This class is abstract. Subclasses must implement the corresponding template
methods to retrieve the values for the mail message's subject, recipients,
and from/reply-to addresses based on the integration Message
.
Field Summary | |
---|---|
private org.apache.commons.logging.Log |
logger
|
Constructor Summary | |
---|---|
AbstractMailHeaderGenerator()
|
Method Summary | |
---|---|
protected abstract java.lang.String[] |
getBcc(Message<?> message)
Retrieve the BCC recipients list from an integration message. |
protected abstract java.lang.String[] |
getCc(Message<?> message)
Retrieve the CC recipients list from an integration message. |
protected abstract java.lang.String |
getFrom(Message<?> message)
Retrieve the From: e-mail address from an integration message. |
protected abstract java.lang.String |
getReplyTo(Message<?> message)
Retrieve the Reply To: e-mail address from an integration message. |
protected abstract java.lang.String |
getSubject(Message<?> message)
Retrieve the subject of an e-mail message from an integration message. |
protected abstract java.lang.String[] |
getTo(Message<?> message)
Retrieve the recipients list from an integration message. |
void |
populateMailMessageHeader(org.springframework.mail.MailMessage mailMessage,
Message<?> message)
Populate the mail message using the results of the template methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public AbstractMailHeaderGenerator()
Method Detail |
---|
protected abstract java.lang.String getSubject(Message<?> message)
message
- the integration Message
protected abstract java.lang.String[] getTo(Message<?> message)
message
- the integration Message
protected abstract java.lang.String[] getCc(Message<?> message)
message
- the integration Message
protected abstract java.lang.String[] getBcc(Message<?> message)
message
- the integration Message
protected abstract java.lang.String getFrom(Message<?> message)
message
- the integration Message
protected abstract java.lang.String getReplyTo(Message<?> message)
message
- the integration Message
public final void populateMailMessageHeader(org.springframework.mail.MailMessage mailMessage, Message<?> message)
populateMailMessageHeader
in interface MailHeaderGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |