Class JacksonJsonMessageParser
java.lang.Object
org.springframework.integration.support.json.JacksonJsonMessageParser
- All Implemented Interfaces:
Aware,BeanFactoryAware,JsonInboundMessageMapper.JsonMessageParser<tools.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:
- 7.0
- Author:
- Jooyoung Pyoung
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected tools.jackson.core.JsonParsercreateJsonParser(String jsonMessage) Message<?> doInParser(JsonInboundMessageMapper messageMapperToUse, String jsonMessage, @Nullable Map<String, Object> headers) protected MessageBuilderFactoryprotected Message<?> parseWithHeaders(tools.jackson.core.JsonParser parser, String jsonMessage, @Nullable Map<String, Object> headersToAdd) protected @Nullable ObjectreadHeader(tools.jackson.core.JsonParser parser, String headerName, String jsonMessage) protected @Nullable ObjectreadPayload(tools.jackson.core.JsonParser parser, String jsonMessage) voidsetBeanFactory(BeanFactory beanFactory)
-
Constructor Details
-
JacksonJsonMessageParser
public JacksonJsonMessageParser() -
JacksonJsonMessageParser
-
-
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
-