public abstract class AbstractHttpRequestMatcher extends NotMatcher<RequestDefinition> implements HttpRequestMatcher
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BECAUSE |
protected static String |
COLON_NEW_LINE |
protected static String |
COLON_NEW_LINES |
protected boolean |
controlPlaneMatcher |
protected static String |
DID_NOT_MATCH |
protected String |
didNotMatchExpectationBecause |
protected String |
didNotMatchExpectationWithoutBecause |
protected String |
didNotMatchRequestBecause |
protected Expectation |
expectation |
protected static String |
EXPECTATION |
protected static String |
EXPECTATION_DID_MATCH |
protected static String |
MATCHED |
protected MockServerLogger |
mockServerLogger |
protected static String |
REQUEST_DID_MATCH |
protected static String |
REQUEST_DID_NOT_MATCH |
protected static String |
REQUEST_MATCHER |
EXPECTATION_PRIORITY_COMPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHttpRequestMatcher(MockServerLogger mockServerLogger) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Expectation |
getExpectation() |
int |
hashCode() |
boolean |
isActive() |
boolean |
isBlank() |
boolean |
isResponseInProgress() |
abstract boolean |
matches(MatchDifference matchDifference,
RequestDefinition requestDefinition) |
boolean |
matches(RequestDefinition requestDefinition) |
void |
setControlPlaneMatcher(boolean controlPlaneMatcher) |
void |
setDescription(String description) |
HttpRequestMatcher |
setResponseInProgress(boolean responseInProgress) |
boolean |
update(Expectation expectation) |
boolean |
update(RequestDefinition requestDefinition) |
notMatcherfieldsExcludedFromEqualsAndHashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetHttpRequestsprotected static final String REQUEST_DID_NOT_MATCH
protected static final String REQUEST_MATCHER
protected static final String EXPECTATION
protected static final String BECAUSE
protected static final String REQUEST_DID_MATCH
protected static final String EXPECTATION_DID_MATCH
protected static final String DID_NOT_MATCH
protected static final String MATCHED
protected static final String COLON_NEW_LINE
protected static final String COLON_NEW_LINES
protected final MockServerLogger mockServerLogger
protected boolean controlPlaneMatcher
protected Expectation expectation
protected String didNotMatchRequestBecause
protected String didNotMatchExpectationBecause
protected String didNotMatchExpectationWithoutBecause
protected AbstractHttpRequestMatcher(MockServerLogger mockServerLogger)
public void setDescription(String description)
public boolean update(Expectation expectation)
update in interface HttpRequestMatcherpublic boolean update(RequestDefinition requestDefinition)
update in interface HttpRequestMatcherpublic void setControlPlaneMatcher(boolean controlPlaneMatcher)
public boolean matches(RequestDefinition requestDefinition)
matches in interface HttpRequestMatcherpublic abstract boolean matches(MatchDifference matchDifference, RequestDefinition requestDefinition)
matches in interface HttpRequestMatchermatches in interface Matcher<RequestDefinition>public Expectation getExpectation()
getExpectation in interface HttpRequestMatcherpublic boolean isResponseInProgress()
isResponseInProgress in interface HttpRequestMatcherpublic HttpRequestMatcher setResponseInProgress(boolean responseInProgress)
setResponseInProgress in interface HttpRequestMatcherpublic boolean isBlank()
isBlank in interface Matcher<RequestDefinition>public boolean isActive()
isActive in interface HttpRequestMatcherpublic boolean equals(Object o)
equals in class ObjectWithReflectiveEqualsHashCodeToStringpublic int hashCode()
hashCode in class ObjectWithReflectiveEqualsHashCodeToStringCopyright © 2020. All rights reserved.