org.springframework.integration.adapter.mail
Interface MailHeaderGenerator

All Known Implementing Classes:
AbstractMailHeaderGenerator, DefaultMailHeaderGenerator, StaticMailHeaderGenerator

public interface MailHeaderGenerator

Strategy interface for generating header information for an e-mail message from the content of the integration message. Minimal configuration should include the recipients list, the subject, from/reply-to, etc. However, this strategy allows the implementation of more complex business logic, when these parameters are depending on the integration message itself.

Author:
Marius Bogoevici

Method Summary
 void populateMailMessageHeader(org.springframework.mail.MailMessage mailMessage, Message<?> message)
          Populate the e-mail message header based on the content of the integration message.
 

Method Detail

populateMailMessageHeader

void populateMailMessageHeader(org.springframework.mail.MailMessage mailMessage,
                               Message<?> message)
Populate the e-mail message header based on the content of the integration message.