org.mule.transport.email
Class EagerMailMessageAdapter
java.lang.Object
org.mule.transport.AbstractMessageAdapter
org.mule.transport.email.SimpleMailMessageAdapter
org.mule.transport.email.MailMessageAdapter
org.mule.transport.email.EagerMailMessageAdapter
- All Implemented Interfaces:
- Serializable, ThreadSafeAccess, MessageAdapter
public class EagerMailMessageAdapter
- extends MailMessageAdapter
MailMessageAdapter is a wrapper for a javax.mail.Message that
separates multi-part mail messages, storing all but the first part as attachments
to the underlying AbstractMessageAdapter. Alternatively, you can use
SimpleMailMessageAdapter, which stores the message as a single
entity.
- See Also:
- Serialized Form
| Methods inherited from class org.mule.transport.AbstractMessageAdapter |
addAttachment, addInboundProperties, addProperties, addProperties, assertAccess, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getProperty, getProperty, getProperty, getPropertyNames, getPropertyNames, getReplyTo, getStringProperty, getUniqueId, isDisabled, newException, release, removeAttachment, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setProperty, setReplyTo, setStringProperty, toString |
ATTACHMENT_HEADERS_PROPERTY_POSTFIX
public static final String ATTACHMENT_HEADERS_PROPERTY_POSTFIX
- See Also:
- Constant Field Values
EagerMailMessageAdapter
public EagerMailMessageAdapter(Object object)
throws MuleException
- Throws:
MuleException
handleMessage
protected void handleMessage(Message message)
throws Exception
- Add mime body parts as attachments.
- Overrides:
handleMessage in class MailMessageAdapter
- Throws:
Exception
getPayload
public Object getPayload()
- Specified by:
getPayload in interface MessageAdapter- Overrides:
getPayload in class SimpleMailMessageAdapter
- Returns:
- the current message
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.