org.springframework.integration.adapter.mail
Class TextMailMessageMapper

java.lang.Object
  extended by org.springframework.integration.adapter.mail.TextMailMessageMapper
All Implemented Interfaces:
MessageMapper<java.lang.String,org.springframework.mail.MailMessage>

public class TextMailMessageMapper
extends java.lang.Object
implements MessageMapper<java.lang.String,org.springframework.mail.MailMessage>

Message mapper for transforming integration messages with a String payload into simple text e-mail messages. The body of the e-mail message will be the content of the integration message's payload.

Author:
Marius Bogoevici

Constructor Summary
TextMailMessageMapper()
           
 
Method Summary
 org.springframework.mail.MailMessage mapMessage(Message<java.lang.String> stringMessage)
          Map from the given Message to an Object.
 Message<java.lang.String> toMessage(org.springframework.mail.MailMessage source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextMailMessageMapper

public TextMailMessageMapper()
Method Detail

toMessage

public Message<java.lang.String> toMessage(org.springframework.mail.MailMessage source)

mapMessage

public org.springframework.mail.MailMessage mapMessage(Message<java.lang.String> stringMessage)
Description copied from interface: MessageMapper
Map from the given Message to an Object.

Specified by:
mapMessage in interface MessageMapper<java.lang.String,org.springframework.mail.MailMessage>