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()booleanisBlank()booleanmatches(String matched)booleanmatches(MockServerLogger mockServerLogger, MatchDifference context, NottableString matcher, NottableString matched)booleanmatches(MatchDifference context, NottableString matched)booleanmatches(NottableString matcher, NottableString matched)-
Methods inherited from class org.mockserver.matchers.NotMatcher
notMatcher
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
RegexStringMatcher
public RegexStringMatcher(MockServerLogger mockServerLogger, boolean controlPlaneMatcher)
-
-
Method Detail
-
matches
public boolean matches(String matched)
-
matches
public boolean matches(MatchDifference context, NottableString matched)
-
matches
public boolean matches(NottableString matcher, NottableString matched)
-
matches
public boolean matches(MockServerLogger mockServerLogger, MatchDifference context, NottableString matcher, NottableString matched)
-
isBlank
public boolean isBlank()
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCodein classObjectWithReflectiveEqualsHashCodeToString
-
-