public class AjaxMuleMessageFactory extends AbstractMuleMessageFactory
MuleMessageFactory
implementation for JSON messages. The payload can either be a
Map
or a JSON encoded String.
If the payload is a Map
, this message factory will recognise the following keys:
Bayeux.DATA_FIELD
AjaxConnector.REPLYTO_PARAM
Modifier and Type | Field and Description |
---|---|
protected IsJsonFilter |
filter |
muleContext
Constructor and Description |
---|
AjaxMuleMessageFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
addProperties(DefaultMuleMessage muleMessage,
Object transportMessage) |
protected Object |
extractPayload(Object transportMessage,
String encoding) |
protected Class<?>[] |
getSupportedTransportMessageTypes() |
addAttachments, create, create, create, create, getMimeType
protected transient IsJsonFilter filter
protected Class<?>[] getSupportedTransportMessageTypes()
getSupportedTransportMessageTypes
in class AbstractMuleMessageFactory
protected Object extractPayload(Object transportMessage, String encoding) throws Exception
extractPayload
in class AbstractMuleMessageFactory
Exception
protected void addProperties(DefaultMuleMessage muleMessage, Object transportMessage) throws Exception
addProperties
in class AbstractMuleMessageFactory
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.