Class XpathPayloadVariableExtractor
java.lang.Object
org.citrusframework.validation.xml.XpathPayloadVariableExtractor
- All Implemented Interfaces:
MessageProcessor,MessageTransformer,VariableExtractor
Class reads message elements via XPath expressions and saves the text values as new test variables.
Implementation parsed the message payload as DOM document, so XML message payload is needed here.
- Author:
- Christoph Deppisch
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractVariables(Message message, TestContext context) Extract variables using Xpath expressions.Gets the namespaces.Gets the xPathExpressions.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
-
XpathPayloadVariableExtractor
public XpathPayloadVariableExtractor()
-
-
Method Details
-
extractVariables
Extract variables using Xpath expressions.- Specified by:
extractVariablesin interfaceVariableExtractor
-
getXpathExpressions
Gets the xPathExpressions.- Returns:
- the xPathExpressions
-
getNamespaces
Gets the namespaces.- Returns:
- the namespaces
-