Spring Integration

org.springframework.integration.json
Class OutboundJsonMessageMapper

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

public class OutboundJsonMessageMapper
extends Object
implements OutboundMessageMapper<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
 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 String fromMessage(Message<?> message)
                   throws Exception
Specified by:
fromMessage in interface OutboundMessageMapper<String>
Throws:
Exception

setShouldExtractPayload

public void setShouldExtractPayload(boolean shouldExtractPayload)

Spring Integration

Copyright © 2010. All Rights Reserved.