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
-
-
Field Summary
Fields Modifier and Type Field Description static MockServerLogger
MOCK_SERVER_LOGGER
-
Constructor Summary
Constructors Constructor Description RegexStringMatcher(MockServerLogger mockServerLogger)
RegexStringMatcher(MockServerLogger mockServerLogger, String matcher)
RegexStringMatcher(MockServerLogger mockServerLogger, NottableString matcher)
-
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
-
-
-
-
Field Detail
-
MOCK_SERVER_LOGGER
public static final MockServerLogger MOCK_SERVER_LOGGER
-
-
Constructor Detail
-
RegexStringMatcher
public RegexStringMatcher(MockServerLogger mockServerLogger)
-
RegexStringMatcher
public RegexStringMatcher(MockServerLogger mockServerLogger, String matcher)
-
RegexStringMatcher
public RegexStringMatcher(MockServerLogger mockServerLogger, NottableString matcher)
-
-
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
-
-