Class XpathMessageValidationContext
java.lang.Object
org.citrusframework.validation.context.DefaultValidationContext
org.citrusframework.validation.context.DefaultMessageValidationContext
org.citrusframework.validation.xml.XmlMessageValidationContext
org.citrusframework.validation.xml.XpathMessageValidationContext
- All Implemented Interfaces:
org.citrusframework.validation.context.MessageValidationContext,org.citrusframework.validation.context.SchemaValidationContext,org.citrusframework.validation.context.ValidationContext
Specialised Xml validation context adds XPath expression evaluation.
- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder.Nested classes/interfaces inherited from class org.citrusframework.validation.xml.XmlMessageValidationContext
XmlMessageValidationContext.XmlValidationContextBuilder<T extends XmlMessageValidationContext,S extends XmlMessageValidationContext.XmlValidationContextBuilder<T, S>> -
Field Summary
Fields inherited from interface org.citrusframework.validation.context.ValidationContext
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor using fluent builder. -
Method Summary
Modifier and TypeMethodDescriptionGet the control message elements that have to be present in the received message.static booleanisXpathExpression(String pathExpression) Check whether given path expression is a JSONPath expression.booleanMethods inherited from class org.citrusframework.validation.xml.XmlMessageValidationContext
getControlNamespaces, getNamespaces, updateStatusMethods inherited from class org.citrusframework.validation.context.DefaultMessageValidationContext
getIgnoreExpressions, getSchema, getSchemaRepository, isSchemaValidationEnabledMethods inherited from class org.citrusframework.validation.context.DefaultValidationContext
getStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.validation.context.ValidationContext
getStatus
-
Constructor Details
-
XpathMessageValidationContext
public XpathMessageValidationContext()Default constructor. -
XpathMessageValidationContext
Constructor using fluent builder.- Parameters:
builder-
-
-
Method Details
-
requiresValidator
public boolean requiresValidator() -
getXpathExpressions
Get the control message elements that have to be present in the received message. Message element values are compared as well.- Returns:
- the xPathExpressions
-
isXpathExpression
Check whether given path expression is a JSONPath expression.- Parameters:
pathExpression-- Returns:
-