Package org.mockserver.matchers
Class AbstractHttpRequestMatcher
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.matchers.NotMatcher<RequestDefinition>
org.mockserver.matchers.AbstractHttpRequestMatcher
- All Implemented Interfaces:
HttpRequestMatcher,Matcher<RequestDefinition>
- Direct Known Subclasses:
BinaryRequestPropertiesMatcher,DnsRequestPropertiesMatcher,HttpRequestPropertiesMatcher,HttpRequestsPropertiesMatcher
public abstract class AbstractHttpRequestMatcher
extends NotMatcher<RequestDefinition>
implements HttpRequestMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected final Configurationprotected booleanprotected static final Stringprotected Stringprotected Stringprotected Stringprotected Expectationprotected static final Stringprotected static final Stringprotected static final Stringprotected Stringprotected final MockServerLoggerprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractHttpRequestMatcher(Configuration configuration, MockServerLogger mockServerLogger) -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanapplyNotOperators(boolean baseMatches, boolean requestNot, boolean expectationNot, boolean matcherNot) booleaninthashCode()booleanisActive()booleanisBlank()booleanabstract booleanmatches(MatchDifference context, RequestDefinition requestDefinition) booleanmatches(RequestDefinition requestDefinition) voidsetControlPlaneMatcher(boolean controlPlaneMatcher) voidsetDescription(String description) setResponseInProgress(boolean responseInProgress) booleanupdate(Expectation expectation) booleanupdate(RequestDefinition requestDefinition) Methods inherited from class org.mockserver.matchers.NotMatcher
notMatcherMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mockserver.matchers.HttpRequestMatcher
getHttpRequests
-
Field Details
-
REQUEST_DID_NOT_MATCH
- See Also:
-
REQUEST_MATCHER
- See Also:
-
EXPECTATION
- See Also:
-
BECAUSE
- See Also:
-
REQUEST_DID_MATCH
- See Also:
-
EXPECTATION_DID_MATCH
- See Also:
-
DID_NOT_MATCH
- See Also:
-
MATCHED
- See Also:
-
COLON_NEW_LINES
-
configuration
-
mockServerLogger
-
controlPlaneMatcher
protected boolean controlPlaneMatcher -
expectation
-
matcherDescription
-
didNotMatchRequestBecause
-
didNotMatchExpectationBecause
-
didNotMatchExpectationWithoutBecause
-
-
Constructor Details
-
AbstractHttpRequestMatcher
protected AbstractHttpRequestMatcher(Configuration configuration, MockServerLogger mockServerLogger)
-
-
Method Details
-
setDescription
-
update
- Specified by:
updatein interfaceHttpRequestMatcher
-
update
- Specified by:
updatein interfaceHttpRequestMatcher
-
setControlPlaneMatcher
public void setControlPlaneMatcher(boolean controlPlaneMatcher) -
matches
- Specified by:
matchesin interfaceHttpRequestMatcher
-
matches
- Specified by:
matchesin interfaceHttpRequestMatcher- Specified by:
matchesin interfaceMatcher<RequestDefinition>
-
getExpectation
- Specified by:
getExpectationin interfaceHttpRequestMatcher
-
isResponseInProgress
public boolean isResponseInProgress()- Specified by:
isResponseInProgressin interfaceHttpRequestMatcher
-
setResponseInProgress
- Specified by:
setResponseInProgressin interfaceHttpRequestMatcher
-
getSource
- Specified by:
getSourcein interfaceHttpRequestMatcher
-
withSource
- Specified by:
withSourcein interfaceHttpRequestMatcher
-
isBlank
public boolean isBlank()- Specified by:
isBlankin interfaceMatcher<RequestDefinition>
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceHttpRequestMatcher
-
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-
applyNotOperators
protected static boolean applyNotOperators(boolean baseMatches, boolean requestNot, boolean expectationNot, boolean matcherNot)
-