org.springframework.integration.adapter.mail
Class TextMailMessageMapper

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

public class TextMailMessageMapper
extends org.springframework.integration.message.AbstractMessageMapper<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 fromMessage(org.springframework.integration.message.Message<java.lang.String> stringMessage)
           
 org.springframework.integration.message.Message<java.lang.String> toMessage(org.springframework.mail.MailMessage source)
           
 
Methods inherited from class org.springframework.integration.message.AbstractMessageMapper
getIdGenerator, setIdGenerator
 
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 org.springframework.integration.message.Message<java.lang.String> toMessage(org.springframework.mail.MailMessage source)

fromMessage

public org.springframework.mail.MailMessage fromMessage(org.springframework.integration.message.Message<java.lang.String> stringMessage)