public class MailToStringTransformer extends AbstractMailMessageTransformer<String>
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 Part or Multipart, a String will be created from an output stream of
bytes using the provided charset (or UTF-8 by default).Constructor and Description |
---|
MailToStringTransformer() |
Modifier and Type | Method and Description |
---|---|
protected AbstractIntegrationMessageBuilder<String> |
doTransform(Message mailMessage) |
void |
setCharset(String charset)
Specify the name of the Charset to use when converting from bytes.
|
getMessageBuilderFactory, setBeanFactory, transform
public void setCharset(String charset)
charset
- The charset.protected AbstractIntegrationMessageBuilder<String> doTransform(Message mailMessage) throws Exception
doTransform
in class AbstractMailMessageTransformer<String>
Exception