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 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(Object transportMessage,
String encoding)
throws 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:
Exception
create
public MuleMessage create(Object transportMessage,
MuleMessage previousMessage,
String encoding)
throws 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:
Exception
getSupportedTransportMessageTypes
protected abstract Class<?>[] getSupportedTransportMessageTypes()
extractPayload
protected abstract Object extractPayload(Object transportMessage,
String encoding)
throws Exception
- Throws:
Exception
addProperties
protected void addProperties(DefaultMuleMessage message,
Object transportMessage)
throws Exception
- Throws:
Exception
addAttachments
protected void addAttachments(DefaultMuleMessage message,
Object transportMessage)
throws Exception
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.