public abstract class AbstractMuleMessageFactory extends Object implements MuleMessageFactory
| Modifier and Type | Field and Description |
|---|---|
protected MuleContext |
muleContext |
| Constructor and Description |
|---|
AbstractMuleMessageFactory()
Required by subclasses to instantiate factory through reflection.
|
AbstractMuleMessageFactory(MuleContext context)
Deprecated.
use
AbstractMuleMessageFactory() instead |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttachments(DefaultMuleMessage message,
Object transportMessage) |
protected void |
addProperties(DefaultMuleMessage message,
Object transportMessage) |
MuleMessage |
create(Object transportMessage,
MuleMessage previousMessage,
String encoding)
Deprecated.
|
MuleMessage |
create(Object transportMessage,
MuleMessage previousMessage,
String encoding,
MuleContext muleContext)
Creates a
MuleMessage instance by extracting the payload from
transportMessage. |
MuleMessage |
create(Object transportMessage,
String encoding)
Deprecated.
use
create(Object, String, org.mule.api.MuleContext) instead. |
MuleMessage |
create(Object transportMessage,
String encoding,
MuleContext muleContext)
Creates a
MuleMessage instance from transportMessage by extracting
its payload and, if available, any relevant message properties and attachments. |
protected abstract Object |
extractPayload(Object transportMessage,
String encoding) |
protected String |
getMimeType(Object transportMessage) |
protected abstract Class<?>[] |
getSupportedTransportMessageTypes() |
protected MuleContext muleContext
public AbstractMuleMessageFactory()
@Deprecated public AbstractMuleMessageFactory(MuleContext context)
AbstractMuleMessageFactory() instead@Deprecated public MuleMessage create(Object transportMessage, String encoding) throws Exception
create(Object, String, org.mule.api.MuleContext) instead.MuleMessageFactoryMuleMessage instance from transportMessage by extracting
its payload and, if available, any relevant message properties and attachments.
* @deprecated use MuleMessageFactory.create(Object, org.mule.api.MuleMessage, String, org.mule.api.MuleContext) instead.create in interface MuleMessageFactoryException@Deprecated public MuleMessage create(Object transportMessage, MuleMessage previousMessage, String encoding) throws Exception
create(Object, org.mule.api.MuleMessage, String, org.mule.api.MuleContext) instead.MuleMessageFactoryMuleMessage instance by extracting the payload from
transportMessage. Additional message properties will be taken from
previousMessage.create in interface MuleMessageFactoryExceptionpublic MuleMessage create(Object transportMessage, MuleMessage previousMessage, String encoding, MuleContext muleContext) throws Exception
MuleMessageFactoryMuleMessage instance by extracting the payload from
transportMessage. Additional message properties will be taken from
previousMessage.create in interface MuleMessageFactoryExceptionpublic MuleMessage create(Object transportMessage, String encoding, MuleContext muleContext) throws Exception
MuleMessageFactoryMuleMessage instance from transportMessage by extracting
its payload and, if available, any relevant message properties and attachments.create in interface MuleMessageFactoryExceptionprotected abstract Class<?>[] getSupportedTransportMessageTypes()
protected abstract Object extractPayload(Object transportMessage, String encoding) throws Exception
Exceptionprotected void addProperties(DefaultMuleMessage message, Object transportMessage) throws Exception
Exceptionprotected void addAttachments(DefaultMuleMessage message, Object transportMessage) throws Exception
ExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.