Class AbstractMailMessageTransformer<T>
java.lang.Object
org.springframework.integration.mail.transformer.AbstractMailMessageTransformer<T>
- Type Parameters:
T
- the target payload type.
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,GenericTransformer<Message<?>,Message<?>>
,Transformer
- Direct Known Subclasses:
MailToStringTransformer
public abstract class AbstractMailMessageTransformer<T> extends Object implements Transformer, BeanFactoryAware
Base class for Transformers that convert from a JavaMail Message to a
Spring Integration Message.
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
Constructor Summary
Constructors Constructor Description AbstractMailMessageTransformer()
-
Method Summary
Modifier and Type Method Description protected abstract AbstractIntegrationMessageBuilder<T>
doTransform(javax.mail.Message mailMessage)
protected MessageBuilderFactory
getMessageBuilderFactory()
void
setBeanFactory(BeanFactory beanFactory)
Message<?>
transform(Message<?> message)
-
Constructor Details
-
AbstractMailMessageTransformer
public AbstractMailMessageTransformer()
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
-
getMessageBuilderFactory
-
transform
- Specified by:
transform
in interfaceGenericTransformer<Message<?>,Message<?>>
- Specified by:
transform
in interfaceTransformer
-
doTransform
protected abstract AbstractIntegrationMessageBuilder<T> doTransform(javax.mail.Message mailMessage) throws Exception- Throws:
Exception
-