Class Jackson2JsonMessageParser
java.lang.Object
org.springframework.integration.support.json.Jackson2JsonMessageParser
- All Implemented Interfaces:
Aware,BeanFactoryAware,JsonInboundMessageMapper.JsonMessageParser<com.fasterxml.jackson.core.JsonParser>
JsonInboundMessageMapper.JsonMessageParser implementation that parses JSON messages
and builds a Message with the specified payload type from provided JsonInboundMessageMapper.
Uses Jackson JSON Processor.- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.core.JsonParsercreateJsonParser(String jsonMessage) Message<?>doInParser(JsonInboundMessageMapper messageMapperToUse, String jsonMessage, Map<String, Object> headers) protected MessageBuilderFactoryprotected Message<?>parseWithHeaders(com.fasterxml.jackson.core.JsonParser parser, String jsonMessage, Map<String, Object> headersToAdd) protected ObjectreadHeader(com.fasterxml.jackson.core.JsonParser parser, String headerName, String jsonMessage) protected ObjectreadPayload(com.fasterxml.jackson.core.JsonParser parser, String jsonMessage) voidsetBeanFactory(BeanFactory beanFactory)
-
Constructor Details
-
Jackson2JsonMessageParser
public Jackson2JsonMessageParser() -
Jackson2JsonMessageParser
-
-
Method Details
-
createJsonParser
-
parseWithHeaders
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
getMessageBuilderFactory
-
doInParser
public Message<?> doInParser(JsonInboundMessageMapper messageMapperToUse, String jsonMessage, @Nullable Map<String, Object> headers) - Specified by:
doInParserin interfaceJsonInboundMessageMapper.JsonMessageParser<P>
-
readPayload
-
readHeader
-