Class AbstractJsonDataDictionary
java.lang.Object
org.citrusframework.message.AbstractMessageProcessor
org.citrusframework.variable.dictionary.AbstractDataDictionary<String>
org.citrusframework.variable.dictionary.json.AbstractJsonDataDictionary
- All Implemented Interfaces:
InitializingPhase,MessageDirectionAware,MessageProcessor,MessageTransformer,MessageTypeSelector,Scoped,DataDictionary<String>
- Direct Known Subclasses:
JsonMappingDataDictionary,JsonPathMappingDataDictionary
Abstract json data dictionary works on json message data. Each value is translated with dictionary.
- 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 TypeMethodDescriptionbooleansupportsMessageType(String messageType) Checks if this message interceptor is capable of this message type.Methods 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, processMessage, setDirectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.variable.dictionary.DataDictionary
translateMethods inherited from interface org.citrusframework.message.MessageDirectionAware
getDirectionMethods inherited from interface org.citrusframework.message.MessageProcessor
process, transform
-
Constructor Details
-
AbstractJsonDataDictionary
public AbstractJsonDataDictionary()
-
-
Method Details
-
supportsMessageType
Checks if this message interceptor is capable of this message type. XML message interceptors may only apply to this message type while JSON message interceptor implementations do not and vice versa.- Specified by:
supportsMessageTypein interfaceMessageTypeSelector- Overrides:
supportsMessageTypein classAbstractMessageProcessor- Parameters:
messageType- the message type representation as String (e.g. xml, json, csv, plaintext).- Returns:
- true if this message interceptor supports the message type.
-