Class MatchesXPathPattern
java.lang.Object
com.github.tomakehurst.wiremock.matching.ContentPattern<String>
com.github.tomakehurst.wiremock.matching.StringValuePattern
com.github.tomakehurst.wiremock.matching.PathPattern
com.github.tomakehurst.wiremock.matching.MatchesXPathPattern
- All Implemented Interfaces:
NamedValueMatcher<String>
,ValueMatcher<String>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.tomakehurst.wiremock.matching.PathPattern
PathPattern.SubExpressionException
-
Field Summary
Fields inherited from class com.github.tomakehurst.wiremock.matching.PathPattern
valuePattern
Fields inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
expectedValue
-
Constructor Summary
ConstructorDescriptionMatchesXPathPattern
(String xpath) MatchesXPathPattern
(String xpath, StringValuePattern valuePattern) MatchesXPathPattern
(String xpath, Map<String, String> namespaces) MatchesXPathPattern
(String xpath, Map<String, String> namespaces, StringValuePattern valuePattern) -
Method Summary
Modifier and TypeMethodDescriptiongetExpressionResult
(String value) protected MatchResult
isAdvancedMatch
(String value) protected MatchResult
isSimpleMatch
(String value) withXPathNamespace
(String name, String namespaceUri) Methods inherited from class com.github.tomakehurst.wiremock.matching.PathPattern
equals, getValuePattern, hashCode, isSimple, match
Methods inherited from class com.github.tomakehurst.wiremock.matching.StringValuePattern
and, getExpected, getName, isAbsent, isPresent, nullSafeIsAbsent, or, toString
Methods inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
getValue, isNullValuePermitted
-
Constructor Details
-
MatchesXPathPattern
-
MatchesXPathPattern
-
MatchesXPathPattern
-
MatchesXPathPattern
public MatchesXPathPattern(String xpath, Map<String, String> namespaces, StringValuePattern valuePattern)
-
-
Method Details
-
withXPathNamespace
-
getMatchesXPath
-
getXPathNamespaces
-
isSimpleMatch
- Specified by:
isSimpleMatch
in classPathPattern
-
isAdvancedMatch
- Specified by:
isAdvancedMatch
in classPathPattern
-
getExpressionResult
- Specified by:
getExpressionResult
in classPathPattern
-