public class Jackson2JsonMessageParser
extends java.lang.Object
JsonInboundMessageMapper.JsonMessageParser
implementation that parses JSON messages
and builds a Message
with the specified payload type from provided JsonInboundMessageMapper
.
Uses Jackson 2 JSON-processor (@link https://github.com/FasterXML).Constructor and Description |
---|
Jackson2JsonMessageParser() |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.core.JsonParser |
createJsonParser(java.lang.String jsonMessage) |
Message<?> |
doInParser(JsonInboundMessageMapper messageMapper,
java.lang.String jsonMessage) |
protected Message<?> |
parseWithHeaders(com.fasterxml.jackson.core.JsonParser parser,
java.lang.String jsonMessage) |
protected java.lang.Object |
readHeader(P parser,
java.lang.String headerName,
java.lang.String jsonMessage) |
protected java.lang.Object |
readPayload(P parser,
java.lang.String jsonMessage) |
protected com.fasterxml.jackson.core.JsonParser createJsonParser(java.lang.String jsonMessage) throws java.lang.Exception
java.lang.Exception
protected Message<?> parseWithHeaders(com.fasterxml.jackson.core.JsonParser parser, java.lang.String jsonMessage) throws java.lang.Exception
java.lang.Exception
public Message<?> doInParser(JsonInboundMessageMapper messageMapper, java.lang.String jsonMessage) throws java.lang.Exception
doInParser
in interface JsonInboundMessageMapper.JsonMessageParser<P>
java.lang.Exception
protected java.lang.Object readPayload(P parser, java.lang.String jsonMessage) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object readHeader(P parser, java.lang.String headerName, java.lang.String jsonMessage) throws java.lang.Exception
java.lang.Exception