org.springframework.integration.json
Class OutboundJsonMessageMapper

java.lang.Object
  extended by org.springframework.integration.json.OutboundJsonMessageMapper
All Implemented Interfaces:
OutboundMessageMapper<java.lang.String>

public class OutboundJsonMessageMapper
extends java.lang.Object
implements OutboundMessageMapper<java.lang.String>

OutboundMessageMapper implementation the converts a Message to a JSON string representation. TODO - We might need to add special handling for MessageHistory

Author:
Jeremy Grelle

Constructor Summary
OutboundJsonMessageMapper()
           
 
Method Summary
 java.lang.String fromMessage(Message<?> message)
           
 void setShouldExtractPayload(boolean shouldExtractPayload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutboundJsonMessageMapper

public OutboundJsonMessageMapper()
Method Detail

fromMessage

public java.lang.String fromMessage(Message<?> message)
                             throws java.lang.Exception
Specified by:
fromMessage in interface OutboundMessageMapper<java.lang.String>
Throws:
java.lang.Exception

setShouldExtractPayload

public void setShouldExtractPayload(boolean shouldExtractPayload)