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
valuePatternFields inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
expectedValue -
Constructor Summary
ConstructorsConstructorDescriptionMatchesXPathPattern(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 MatchResultisAdvancedMatch(String value) protected MatchResultisSimpleMatch(String value) withXPathNamespace(String name, String namespaceUri) Methods inherited from class com.github.tomakehurst.wiremock.matching.PathPattern
equals, getValuePattern, hashCode, isSimple, matchMethods inherited from class com.github.tomakehurst.wiremock.matching.StringValuePattern
and, getExpected, getName, isAbsent, isPresent, nullSafeIsAbsent, or, toStringMethods 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:
isSimpleMatchin classPathPattern
-
isAdvancedMatch
- Specified by:
isAdvancedMatchin classPathPattern
-
getExpressionResult
- Specified by:
getExpressionResultin classPathPattern
-