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.MuleMessageFactory
MuleMessage
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 MuleMessageFactory
Exception
@Deprecated public MuleMessage create(Object transportMessage, MuleMessage previousMessage, String encoding) throws Exception
create(Object, org.mule.api.MuleMessage, String, org.mule.api.MuleContext)
instead.MuleMessageFactory
MuleMessage
instance by extracting the payload from
transportMessage
. Additional message properties will be taken from
previousMessage
.create
in interface MuleMessageFactory
Exception
public MuleMessage create(Object transportMessage, MuleMessage previousMessage, String encoding, MuleContext muleContext) throws Exception
MuleMessageFactory
MuleMessage
instance by extracting the payload from
transportMessage
. Additional message properties will be taken from
previousMessage
.create
in interface MuleMessageFactory
Exception
public MuleMessage create(Object transportMessage, String encoding, MuleContext muleContext) throws Exception
MuleMessageFactory
MuleMessage
instance from transportMessage
by extracting
its payload and, if available, any relevant message properties and attachments.create
in interface MuleMessageFactory
Exception
protected abstract Class<?>[] getSupportedTransportMessageTypes()
protected abstract Object extractPayload(Object transportMessage, String encoding) throws Exception
Exception
protected void addProperties(DefaultMuleMessage message, Object transportMessage) throws Exception
Exception
protected void addAttachments(DefaultMuleMessage message, Object transportMessage) throws Exception
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.