Class JsonOutboundMessageMapper

java.lang.Object
org.springframework.integration.support.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.

Consider using the EmbeddedJsonHeadersMessageMapper instead; it provides more flexibility for determining which headers are included.

Since:
2.0
  • Constructor Summary

    Constructors 
    Constructor Description
    JsonOutboundMessageMapper()  
    JsonOutboundMessageMapper​(JsonObjectMapper<?,​?> jsonObjectMapper)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String fromMessage​(org.springframework.messaging.Message<?> message)  
    void setShouldExtractPayload​(boolean shouldExtractPayload)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait