- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, GenericTransformer<org.springframework.messaging.Message<?>,org.springframework.messaging.Message<?>>, Transformer
public class MailToStringTransformer
extends AbstractMailMessageTransformer<java.lang.String>
Transforms a Message payload of type Message
to a String.
If the mail message's content is a String, it will be the payload of the
result Message. If the content is a Multipart, a String will be created from
an output stream of bytes using the provided charset (or UTF-8 by default).
- Author:
- Mark Fisher, Gary Russell