org.mule.transport.email
Class MailMuleMessageFactory

java.lang.Object
  extended by org.mule.transport.AbstractMuleMessageFactory
      extended by org.mule.transport.email.MailMuleMessageFactory
All Implemented Interfaces:
MuleMessageFactory

public class MailMuleMessageFactory
extends AbstractMuleMessageFactory


Field Summary
static String HEADER_LIST_PREFIX
           
 
Fields inherited from class org.mule.transport.AbstractMuleMessageFactory
muleContext
 
Constructor Summary
MailMuleMessageFactory(MuleContext context)
           
 
Method Summary
protected  void addAttachmentHeaders(String name, Part part, MuleMessage muleMessage)
           
protected  void addAttachments(DefaultMuleMessage muleMessage, Object transportMessage)
           
protected  void addFromProperty(DefaultMuleMessage muleMessage, Message mailMessage)
           
protected  void addMailHeadersToMessageProperties(Message mailMessage, DefaultMuleMessage muleMessage)
           
protected  void addProperties(DefaultMuleMessage muleMessage, Object transportMessage)
           
protected  void addRecipientProperty(MuleMessage muleMessage, Message mailMessage, Message.RecipientType recipientType, String property)
           
protected  void addReplyToProperty(DefaultMuleMessage muleMessage, Message mailMessage)
           
protected  void addSentDateProperty(DefaultMuleMessage muleMessage, Message mailMessage)
           
protected  Object extractPayload(Object transportMessage, String encoding)
           
protected  Class<?>[] getSupportedTransportMessageTypes()
           
 
Methods inherited from class org.mule.transport.AbstractMuleMessageFactory
create, create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_LIST_PREFIX

public static final String HEADER_LIST_PREFIX
See Also:
Constant Field Values
Constructor Detail

MailMuleMessageFactory

public MailMuleMessageFactory(MuleContext context)
Method Detail

getSupportedTransportMessageTypes

protected Class<?>[] getSupportedTransportMessageTypes()
Specified by:
getSupportedTransportMessageTypes in class AbstractMuleMessageFactory

extractPayload

protected Object extractPayload(Object transportMessage,
                                String encoding)
                         throws Exception
Specified by:
extractPayload in class AbstractMuleMessageFactory
Throws:
Exception

addProperties

protected void addProperties(DefaultMuleMessage muleMessage,
                             Object transportMessage)
                      throws Exception
Overrides:
addProperties in class AbstractMuleMessageFactory
Throws:
Exception

addRecipientProperty

protected void addRecipientProperty(MuleMessage muleMessage,
                                    Message mailMessage,
                                    Message.RecipientType recipientType,
                                    String property)
                             throws MessagingException
Throws:
MessagingException

addReplyToProperty

protected void addReplyToProperty(DefaultMuleMessage muleMessage,
                                  Message mailMessage)

addFromProperty

protected void addFromProperty(DefaultMuleMessage muleMessage,
                               Message mailMessage)

addSentDateProperty

protected void addSentDateProperty(DefaultMuleMessage muleMessage,
                                   Message mailMessage)
                            throws MessagingException
Throws:
MessagingException

addMailHeadersToMessageProperties

protected void addMailHeadersToMessageProperties(Message mailMessage,
                                                 DefaultMuleMessage muleMessage)
                                          throws MessagingException
Throws:
MessagingException

addAttachments

protected void addAttachments(DefaultMuleMessage muleMessage,
                              Object transportMessage)
                       throws Exception
Overrides:
addAttachments in class AbstractMuleMessageFactory
Throws:
Exception

addAttachmentHeaders

protected void addAttachmentHeaders(String name,
                                    Part part,
                                    MuleMessage muleMessage)
                             throws MessagingException
Throws:
MessagingException


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.