Package org.mockserver.matchers
Class XmlStringMatcher
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.NotMatcher<MatchedType>
-
- org.mockserver.matchers.BodyMatcher<NottableString>
-
- org.mockserver.matchers.XmlStringMatcher
-
- All Implemented Interfaces:
Matcher<NottableString>
public class XmlStringMatcher extends BodyMatcher<NottableString>
- Author:
- jamesdbloom
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
fieldsExcludedFromEqualsAndHashCode()
boolean
matches(String matched)
boolean
matches(HttpRequest context, NottableString matched)
NottableString
normaliseXmlNottableString(NottableString input)
String
normaliseXmlString(String input)
-
Methods inherited from class org.mockserver.matchers.NotMatcher
not
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key, toString
-
-
-
-
Method Detail
-
normaliseXmlString
public String normaliseXmlString(String input) throws ParserConfigurationException, SAXException, IOException, TransformerException
-
normaliseXmlNottableString
public NottableString normaliseXmlNottableString(NottableString input) throws IOException, SAXException, ParserConfigurationException, TransformerException
-
matches
public boolean matches(String matched)
-
matches
public boolean matches(HttpRequest context, NottableString matched)
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-