org.mule.transport.ajax
Class AjaxMuleMessageFactory
java.lang.Object
org.mule.transport.AbstractMuleMessageFactory
org.mule.transport.ajax.AjaxMuleMessageFactory
- All Implemented Interfaces:
- MuleMessageFactory
public class AjaxMuleMessageFactory
- extends AbstractMuleMessageFactory
A 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:
- data - the object to use a the payload, this can be a JSON encoded string. See
Bayeux.DATA_FIELD
- replyTo - the return Ajax channel for this message.
AjaxConnector.REPLYTO_PARAM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
protected transient IsJsonFilter filter
AjaxMuleMessageFactory
public AjaxMuleMessageFactory(MuleContext context)
getSupportedTransportMessageTypes
protected Class<?>[] getSupportedTransportMessageTypes()
- Specified by:
getSupportedTransportMessageTypes
in class AbstractMuleMessageFactory
extractPayload
protected Object extractPayload(Object transportMessage,
String encoding)
throws Exception
- Specified by:
extractPayload
in class AbstractMuleMessageFactory
- Throws:
Exception
addProperties
protected void addProperties(DefaultMuleMessage muleMessage,
Object transportMessage)
throws Exception
- Overrides:
addProperties
in class AbstractMuleMessageFactory
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.