org.mule.transport.ajax
Class AjaxMessageAdapter

java.lang.Object
  extended by org.mule.transport.AbstractMessageAdapter
      extended by org.mule.transport.ajax.AjaxMessageAdapter
All Implemented Interfaces:
Serializable, ThreadSafeAccess, MessageAdapter

public class AjaxMessageAdapter
extends AbstractMessageAdapter

A message adapter that will accept JSON endcode DefaultMuleMessageDTO objects, or a map of objects or just raw payload object.

If the payload is a Map, this adapter will recognise the following keys:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mule.api.ThreadSafeAccess
ThreadSafeAccess.AccessControl
 
Field Summary
protected  IsJsonFilter filter
           
protected  Object payload
           
static String REPLYTO_PARAM
           
 
Fields inherited from class org.mule.transport.AbstractMessageAdapter
attachments, exceptionPayload, id, logger, properties
 
Fields inherited from interface org.mule.api.ThreadSafeAccess
READ, WRITE
 
Constructor Summary
AjaxMessageAdapter(Object message)
           
AjaxMessageAdapter(Object message, MessageAdapter template)
           
 
Method Summary
 Object getPayload()
           
protected  void init(Object message)
           
 
Methods inherited from class org.mule.transport.AbstractMessageAdapter
addAttachment, addInboundProperties, addProperties, addProperties, assertAccess, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getProperty, getProperty, getProperty, getPropertyNames, getPropertyNames, getReplyTo, getStringProperty, getUniqueId, isDisabled, newException, newThreadCopy, release, removeAttachment, removeProperty, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setProperty, setReplyTo, setStringProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPLYTO_PARAM

public static final String REPLYTO_PARAM
See Also:
Constant Field Values

filter

protected transient IsJsonFilter filter

payload

protected Object payload
Constructor Detail

AjaxMessageAdapter

public AjaxMessageAdapter(Object message)
                   throws MuleException
Throws:
MuleException

AjaxMessageAdapter

public AjaxMessageAdapter(Object message,
                          MessageAdapter template)
                   throws MuleException
Throws:
MuleException
Method Detail

init

protected void init(Object message)
             throws MuleException
Throws:
MuleException

getPayload

public Object getPayload()
Returns:
the current message


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