Package org.mockserver.matchers
Class SubStringMatcher
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.NotMatcher<MatchedType>
-
- org.mockserver.matchers.BodyMatcher<NottableString>
-
- org.mockserver.matchers.SubStringMatcher
-
- All Implemented Interfaces:
Matcher<NottableString>
public class SubStringMatcher extends BodyMatcher<NottableString>
- Author:
- jamesdbloom
-
-
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
-
-
-
-
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
-
-