public class JsonOutboundMessageMapper extends Object implements OutboundMessageMapper<String>
OutboundMessageMapper
implementation the converts a Message
to a JSON string representation.Constructor and Description |
---|
JsonOutboundMessageMapper() |
JsonOutboundMessageMapper(JsonObjectMapper<?,?> jsonObjectMapper) |
public JsonOutboundMessageMapper()
public JsonOutboundMessageMapper(JsonObjectMapper<?,?> jsonObjectMapper)
public void setShouldExtractPayload(boolean shouldExtractPayload)
public String fromMessage(Message<?> message) throws Exception
fromMessage
in interface OutboundMessageMapper<String>
Exception