public class JacksonJsonMessageParser
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 JSON-processor (@link http://jackson.codehaus.org).Constructor and Description |
---|
JacksonJsonMessageParser() |
Modifier and Type | Method and Description |
---|---|
protected org.codehaus.jackson.JsonParser |
createJsonParser(java.lang.String jsonMessage) |
Message<?> |
doInParser(JsonInboundMessageMapper messageMapper,
java.lang.String jsonMessage) |
protected Message<?> |
parseWithHeaders(org.codehaus.jackson.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 org.codehaus.jackson.JsonParser createJsonParser(java.lang.String jsonMessage) throws java.lang.Exception
java.lang.Exception
protected Message<?> parseWithHeaders(org.codehaus.jackson.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