Package org.mockserver.matchers
Class JsonStringMatcher
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.NotMatcher<MatchedType>
-
- org.mockserver.matchers.BodyMatcher<String>
-
- org.mockserver.matchers.JsonStringMatcher
-
public class JsonStringMatcher extends BodyMatcher<String>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description JsonStringMatcher(MockServerLogger mockServerLogger, String matcher, MatchType matchType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
fieldsExcludedFromEqualsAndHashCode()
boolean
matches(HttpRequest context, String matched)
-
Methods inherited from class org.mockserver.matchers.NotMatcher
not
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key, toString
-
-
-
-
Constructor Detail
-
JsonStringMatcher
public JsonStringMatcher(MockServerLogger mockServerLogger, String matcher, MatchType matchType)
-
-
Method Detail
-
matches
public boolean matches(HttpRequest context, String matched)
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-