Package org.citrusframework.validation
Class DelegatingPayloadVariableExtractor
java.lang.Object
org.citrusframework.validation.DelegatingPayloadVariableExtractor
- All Implemented Interfaces:
MessageProcessor,MessageTransformer,VariableExtractor
Generic extractor implementation delegating to JSONPath or XPath variable extractor based on given expression
type. Delegate extractor implementations are referenced through resource path lookup.
- Since:
- 2.7.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder. -
Field Summary
Fields inherited from interface org.citrusframework.variable.VariableExtractor
RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidextractVariables(Message message, TestContext context) Gets the XPath namespacesGets the JSONPath / XPath expressions.voidsetNamespaces(Map<String, String> namespaces) Sets the namespacesvoidsetPathExpressions(Map<String, Object> pathExpressions) Sets the JSONPath / XPath expressions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.message.MessageProcessor
transformMethods inherited from interface org.citrusframework.variable.VariableExtractor
process
-
Constructor Details
-
DelegatingPayloadVariableExtractor
public DelegatingPayloadVariableExtractor() -
DelegatingPayloadVariableExtractor
-
-
Method Details
-
extractVariables
- Specified by:
extractVariablesin interfaceVariableExtractor
-
setPathExpressions
Sets the JSONPath / XPath expressions.- Parameters:
pathExpressions-
-
getPathExpressions
Gets the JSONPath / XPath expressions.- Returns:
-
getNamespaces
Gets the XPath namespaces- Returns:
- the namespaces
-
setNamespaces
Sets the namespaces- Parameters:
namespaces- the namespaces
-