Class Jackson2JsonMessageParser
java.lang.Object
org.springframework.integration.support.json.Jackson2JsonMessageParser
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- JsonInboundMessageMapper.JsonMessageParser<com.fasterxml.jackson.core.JsonParser>
Deprecated, for removal: This API element is subject to removal in a future version.
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 SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Jackson2JsonMessageParser(Jackson2JsonObjectMapper objectMapper) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionprotected com.fasterxml.jackson.core.JsonParsercreateJsonParser(String jsonMessage) Deprecated, for removal: This API element is subject to removal in a future version.Message<?> doInParser(JsonInboundMessageMapper messageMapperToUse, String jsonMessage, @Nullable Map<String, Object> headers) protected MessageBuilderFactoryprotected Message<?> parseWithHeaders(com.fasterxml.jackson.core.JsonParser parser, String jsonMessage, Map<String, Object> headersToAdd) Deprecated, for removal: This API element is subject to removal in a future version.protected @Nullable ObjectreadHeader(com.fasterxml.jackson.core.JsonParser parser, String headerName, String jsonMessage) protected @Nullable ObjectreadPayload(com.fasterxml.jackson.core.JsonParser parser, String jsonMessage) voidsetBeanFactory(BeanFactory beanFactory) 
- 
Constructor Details- 
Jackson2JsonMessageParserpublic Jackson2JsonMessageParser()Deprecated, for removal: This API element is subject to removal in a future version.
- 
Jackson2JsonMessageParserDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
createJsonParserDeprecated, for removal: This API element is subject to removal in a future version.
- 
parseWithHeaders
- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Throws:
- BeansException
 
- 
getMessageBuilderFactory
- 
doInParserpublic Message<?> doInParser(JsonInboundMessageMapper messageMapperToUse, String jsonMessage, @Nullable Map<String, Object> headers) - Specified by:
- doInParserin interface- JsonInboundMessageMapper.JsonMessageParser<P>
 
- 
readPayload
- 
readHeader
 
- 
JacksonJsonMessageParserfor Jackson 3.