org.mule.transport.ajax
Class AjaxMuleMessageFactory

java.lang.Object
  extended by org.mule.transport.AbstractMuleMessageFactory
      extended by 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:


Field Summary
protected  IsJsonFilter filter
           
 
Fields inherited from class org.mule.transport.AbstractMuleMessageFactory
muleContext
 
Constructor Summary
AjaxMuleMessageFactory(MuleContext context)
           
 
Method Summary
protected  void addProperties(DefaultMuleMessage muleMessage, java.lang.Object transportMessage)
           
protected  java.lang.Object extractPayload(java.lang.Object transportMessage, java.lang.String encoding)
           
protected  java.lang.Class<?>[] getSupportedTransportMessageTypes()
           
 
Methods inherited from class org.mule.transport.AbstractMuleMessageFactory
addAttachments, create, create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

protected transient IsJsonFilter filter
Constructor Detail

AjaxMuleMessageFactory

public AjaxMuleMessageFactory(MuleContext context)
Method Detail

getSupportedTransportMessageTypes

protected java.lang.Class<?>[] getSupportedTransportMessageTypes()
Specified by:
getSupportedTransportMessageTypes in class AbstractMuleMessageFactory

extractPayload

protected java.lang.Object extractPayload(java.lang.Object transportMessage,
                                          java.lang.String encoding)
                                   throws java.lang.Exception
Specified by:
extractPayload in class AbstractMuleMessageFactory
Throws:
java.lang.Exception

addProperties

protected void addProperties(DefaultMuleMessage muleMessage,
                             java.lang.Object transportMessage)
                      throws java.lang.Exception
Overrides:
addProperties in class AbstractMuleMessageFactory
Throws:
java.lang.Exception


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.