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) |
| Modifier and Type | Method and Description |
|---|---|
String |
fromMessage(Message<?> message) |
void |
setShouldExtractPayload(boolean shouldExtractPayload) |
public JsonOutboundMessageMapper()
public JsonOutboundMessageMapper(JsonObjectMapper<?,?> jsonObjectMapper)
public void setShouldExtractPayload(boolean shouldExtractPayload)
public String fromMessage(Message<?> message) throws Exception
fromMessage in interface OutboundMessageMapper<String>Exception