org.springframework.integration.support.json
Class JacksonJsonMessageParser
java.lang.Object
org.springframework.integration.support.json.JacksonJsonMessageParser
- All Implemented Interfaces:
- JsonInboundMessageMapper.JsonMessageParser<org.codehaus.jackson.JsonParser>
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).
- Since:
- 3.0
- Author:
- Artem Bilan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JacksonJsonMessageParser
public JacksonJsonMessageParser()
createJsonParser
protected org.codehaus.jackson.JsonParser createJsonParser(java.lang.String jsonMessage)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseWithHeaders
protected Message<?> parseWithHeaders(org.codehaus.jackson.JsonParser parser,
java.lang.String jsonMessage)
throws java.lang.Exception
- Throws:
java.lang.Exception
doInParser
public Message<?> doInParser(JsonInboundMessageMapper messageMapper,
java.lang.String jsonMessage)
throws java.lang.Exception
- Specified by:
doInParser
in interface JsonInboundMessageMapper.JsonMessageParser<P>
- Throws:
java.lang.Exception
readPayload
protected java.lang.Object readPayload(P parser,
java.lang.String jsonMessage)
throws java.lang.Exception
- Throws:
java.lang.Exception
readHeader
protected java.lang.Object readHeader(P parser,
java.lang.String headerName,
java.lang.String jsonMessage)
throws java.lang.Exception
- Throws:
java.lang.Exception