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