org.springframework.integration.mail.transformer
Class AbstractMailMessageTransformer<T>

java.lang.Object
  extended by org.springframework.integration.mail.transformer.AbstractMailMessageTransformer<T>
All Implemented Interfaces:
Transformer
Direct Known Subclasses:
MailToStringTransformer

public abstract class AbstractMailMessageTransformer<T>
extends java.lang.Object
implements Transformer

Base class for Transformers that convert from a JavaMail Message to a Spring Integration Message.


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AbstractMailMessageTransformer()
           
 
Method Summary
protected abstract  MessageBuilder<T> doTransform(javax.mail.Message mailMessage)
           
 Message<?> transform(Message<?> message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

AbstractMailMessageTransformer

public AbstractMailMessageTransformer()
Method Detail

transform

public Message<?> transform(Message<?> message)
Specified by:
transform in interface Transformer

doTransform

protected abstract MessageBuilder<T> doTransform(javax.mail.Message mailMessage)
                                          throws java.lang.Exception
Throws:
java.lang.Exception