|
|||||||||
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
.
Constructor Summary | |
---|---|
AbstractMailHeaderGenerator()
|
Method Summary | |
---|---|
protected abstract java.lang.String[] |
getBcc(org.springframework.integration.message.Message<?> message)
Retrieve the BCC recipients list from an integration message. |
protected abstract java.lang.String[] |
getCc(org.springframework.integration.message.Message<?> message)
Retrieve the CC recipients list from an integration message. |
protected abstract java.lang.String |
getFrom(org.springframework.integration.message.Message<?> message)
Retrieve the From: e-mail address from an integration message. |
protected abstract java.lang.String |
getReplyTo(org.springframework.integration.message.Message<?> message)
Retrieve the Reply To: e-mail address from an integration message. |
protected abstract java.lang.String |
getSubject(org.springframework.integration.message.Message<?> message)
Retrieve the subject of an e-mail message from an integration message. |
protected abstract java.lang.String[] |
getTo(org.springframework.integration.message.Message<?> message)
Retrieve the recipients list from an integration message. |
void |
populateMailMessageHeader(org.springframework.mail.MailMessage mailMessage,
org.springframework.integration.message.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 |
Constructor Detail |
---|
public AbstractMailHeaderGenerator()
Method Detail |
---|
protected abstract java.lang.String getSubject(org.springframework.integration.message.Message<?> message)
message
- the integration Message
protected abstract java.lang.String[] getTo(org.springframework.integration.message.Message<?> message)
message
- the integration Message
protected abstract java.lang.String[] getCc(org.springframework.integration.message.Message<?> message)
message
- the integration Message
protected abstract java.lang.String[] getBcc(org.springframework.integration.message.Message<?> message)
message
- the integration Message
protected abstract java.lang.String getFrom(org.springframework.integration.message.Message<?> message)
message
- the integration Message
protected abstract java.lang.String getReplyTo(org.springframework.integration.message.Message<?> message)
message
- the integration Message
public final void populateMailMessageHeader(org.springframework.mail.MailMessage mailMessage, org.springframework.integration.message.Message<?> message)
populateMailMessageHeader
in interface MailHeaderGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |