Package org.citrusframework.validation
Class DelegatingPayloadVariableExtractor
java.lang.Object
org.citrusframework.validation.DelegatingPayloadVariableExtractor
- All Implemented Interfaces:
org.citrusframework.message.MessageProcessor,org.citrusframework.message.MessageTransformer,org.citrusframework.variable.VariableExtractor
public class DelegatingPayloadVariableExtractor
extends Object
implements org.citrusframework.variable.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(org.citrusframework.message.Message message, org.citrusframework.context.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
public void extractVariables(org.citrusframework.message.Message message, org.citrusframework.context.TestContext context) - Specified by:
extractVariablesin interfaceorg.citrusframework.variable.VariableExtractor
-
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
-