org.mule.transport
Class AbstractMuleMessageFactory
java.lang.Object
org.mule.transport.AbstractMuleMessageFactory
- All Implemented Interfaces:
- MuleMessageFactory
- Direct Known Subclasses:
- AjaxMuleMessageFactory, AxisMuleMessageFactory, DefaultMuleMessageFactory, FileMuleMessageFactory, FtpMuleMessageFactory, HttpMuleMessageFactory, JmsMuleMessageFactory, MailMuleMessageFactory, RmiMuleMessageFactory, ServletMuleMessageFactory, UdpMuleMessageFactory, XmppMuleMessageFactory
public abstract class AbstractMuleMessageFactory
- extends java.lang.Object
- implements MuleMessageFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
muleContext
protected MuleContext muleContext
AbstractMuleMessageFactory
public AbstractMuleMessageFactory(MuleContext context)
create
public MuleMessage create(java.lang.Object transportMessage,
java.lang.String encoding)
throws java.lang.Exception
- Description copied from interface:
MuleMessageFactory
- Creates a
MuleMessage
instance from transportMessage
by extracting
its payload and, if available, any relevant message properties and attachments.
- Specified by:
create
in interface MuleMessageFactory
- Throws:
java.lang.Exception
create
public MuleMessage create(java.lang.Object transportMessage,
MuleMessage previousMessage,
java.lang.String encoding)
throws java.lang.Exception
- Description copied from interface:
MuleMessageFactory
- Creates a
MuleMessage
instance by extracting the payload from
transportMessage
. Additional message properties will be taken from
previousMessage
.
- Specified by:
create
in interface MuleMessageFactory
- Throws:
java.lang.Exception
getSupportedTransportMessageTypes
protected abstract java.lang.Class<?>[] getSupportedTransportMessageTypes()
extractPayload
protected abstract java.lang.Object extractPayload(java.lang.Object transportMessage,
java.lang.String encoding)
throws java.lang.Exception
- Throws:
java.lang.Exception
addProperties
protected void addProperties(DefaultMuleMessage message,
java.lang.Object transportMessage)
throws java.lang.Exception
- Throws:
java.lang.Exception
addAttachments
protected void addAttachments(DefaultMuleMessage message,
java.lang.Object transportMessage)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.