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