Spring Integration

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
Author:
Jeremy Grelle, Mark Fisher, Artem Bilan

Constructor Summary
JsonOutboundMessageMapper()
           
JsonOutboundMessageMapper(JsonObjectMapper<?> jsonObjectMapper)
           
 
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

JsonOutboundMessageMapper

public JsonOutboundMessageMapper()

JsonOutboundMessageMapper

public JsonOutboundMessageMapper(JsonObjectMapper<?> jsonObjectMapper)
Method Detail

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

Spring Integration