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) |
notMatcher
fieldsExcludedFromEqualsAndHashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getHttpRequests
protected 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 HttpRequestMatcher
public boolean update(RequestDefinition requestDefinition)
update
in interface HttpRequestMatcher
public void setControlPlaneMatcher(boolean controlPlaneMatcher)
public boolean matches(RequestDefinition requestDefinition)
matches
in interface HttpRequestMatcher
public abstract boolean matches(MatchDifference matchDifference, RequestDefinition requestDefinition)
matches
in interface HttpRequestMatcher
matches
in interface Matcher<RequestDefinition>
public Expectation getExpectation()
getExpectation
in interface HttpRequestMatcher
public boolean isResponseInProgress()
isResponseInProgress
in interface HttpRequestMatcher
public HttpRequestMatcher setResponseInProgress(boolean responseInProgress)
setResponseInProgress
in interface HttpRequestMatcher
public boolean isBlank()
isBlank
in interface Matcher<RequestDefinition>
public boolean isActive()
isActive
in interface HttpRequestMatcher
public boolean equals(Object o)
equals
in class ObjectWithReflectiveEqualsHashCodeToString
public int hashCode()
hashCode
in class ObjectWithReflectiveEqualsHashCodeToString
Copyright © 2020. All rights reserved.