Package org.mockserver.matchers
Class HttpRequestMatcher
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.NotMatcher<HttpRequest>
-
- org.mockserver.matchers.HttpRequestMatcher
-
- All Implemented Interfaces:
Matcher<HttpRequest>
public class HttpRequestMatcher extends NotMatcher<HttpRequest>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description HttpRequestMatcher(MockServerLogger mockServerLogger, HttpRequest httpRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expectation
decrementRemainingMatches()
String[]
fieldsExcludedFromEqualsAndHashCode()
Expectation
getExpectation()
boolean
isActive()
boolean
matches(HttpRequest request)
boolean
matches(HttpRequest context, HttpRequest request)
String
toString()
-
Methods inherited from class org.mockserver.matchers.NotMatcher
not
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key
-
-
-
-
Constructor Detail
-
HttpRequestMatcher
public HttpRequestMatcher(MockServerLogger mockServerLogger, HttpRequest httpRequest)
-
-
Method Detail
-
getExpectation
public Expectation getExpectation()
-
matches
public boolean matches(HttpRequest context, HttpRequest request)
-
matches
public boolean matches(HttpRequest request)
-
isActive
public boolean isActive()
-
decrementRemainingMatches
public Expectation decrementRemainingMatches()
-
toString
public String toString()
- Overrides:
toString
in classObjectWithReflectiveEqualsHashCodeToString
-
fieldsExcludedFromEqualsAndHashCode
public String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-