Class JsonMappingDataDictionary
java.lang.Object
org.citrusframework.message.AbstractMessageProcessor
org.citrusframework.variable.dictionary.AbstractDataDictionary<String>
org.citrusframework.variable.dictionary.json.AbstractJsonDataDictionary
org.citrusframework.variable.dictionary.json.JsonMappingDataDictionary
- All Implemented Interfaces:
InitializingPhase,MessageDirectionAware,MessageProcessor,MessageTransformer,MessageTypeSelector,Scoped,DataDictionary<String>
Simple json data dictionary implementation holds a set of mappings where keys are json path expressions to match
json object graph. Parses message payload to json object tree. Traverses
through json data supporting nested json objects, arrays and values.
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.variable.dictionary.DataDictionary
DataDictionary.PathMappingStrategyNested classes/interfaces inherited from interface org.citrusframework.message.MessageProcessor
MessageProcessor.Builder<T extends MessageProcessor,B extends MessageProcessor.Builder<T, B>> -
Field Summary
Fields inherited from class org.citrusframework.variable.dictionary.AbstractDataDictionary
mappingFile, mappingsFields inherited from interface org.citrusframework.message.MessageProcessor
RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessMessage(Message message, TestContext context) <T> Ttranslate(String jsonPath, T value, TestContext context) Methods inherited from class org.citrusframework.variable.dictionary.json.AbstractJsonDataDictionary
supportsMessageTypeMethods inherited from class org.citrusframework.variable.dictionary.AbstractDataDictionary
convertIfNecessary, getMappingFile, getMappings, getName, getPathMappingStrategy, initialize, isGlobalScope, setGlobalScope, setMappingFile, setMappings, setName, setPathMappingStrategyMethods inherited from class org.citrusframework.message.AbstractMessageProcessor
getDirection, process, setDirectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.message.MessageDirectionAware
getDirectionMethods inherited from interface org.citrusframework.message.MessageProcessor
process, transform
-
Constructor Details
-
JsonMappingDataDictionary
public JsonMappingDataDictionary()
-
-
Method Details
-
processMessage
- Overrides:
processMessagein classAbstractMessageProcessor
-
translate
-