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