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 into simple text e-mail messages. The body of the e-mail message will be the result of invoking the message payload's toString() method.

Author:
Marius Bogoevici, Mark Fisher

Constructor Summary
TextMailMessageMapper()
           
 
Method Summary
 org.springframework.mail.MailMessage mapMessage(Message<java.lang.String> message)
          Map from the given Message to an Object.
 
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

mapMessage

public org.springframework.mail.MailMessage mapMessage(Message<java.lang.String> message)
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>