org.springframework.integration.json
Class JsonOutboundMessageMapper

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

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

OutboundMessageMapper implementation the converts a Message to a JSON string representation.

Since:
2.0

Constructor Summary
JsonOutboundMessageMapper()
           
 
Method Summary
 java.lang.String fromMessage(Message<?> message)
           
 void setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper)
           
 void setShouldExtractPayload(boolean shouldExtractPayload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonOutboundMessageMapper

public JsonOutboundMessageMapper()
Method Detail

setObjectMapper

public void setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper)

setShouldExtractPayload

public void setShouldExtractPayload(boolean shouldExtractPayload)

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