public class JsonOutboundMessageMapper extends Object implements OutboundMessageMapper<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.
| 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)
fromMessage in interface OutboundMessageMapper<String>