
org.mockserver.matchers.HttpRequestMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
package org.mockserver.matchers;
import org.mockserver.mock.Expectation;
import org.mockserver.model.HttpRequest;
import org.mockserver.model.RequestDefinition;
import java.util.Comparator;
import java.util.List;
public interface HttpRequestMatcher extends Matcher {
Comparator super HttpRequestMatcher> EXPECTATION_PRIORITY_COMPARATOR = Comparator.comparing(HttpRequestMatcher::getExpectation, Expectation.EXPECTATION_PRIORITY_COMPARATOR);
List getHttpRequests();
boolean matches(final RequestDefinition request);
boolean matches(MatchDifference matchDifference, RequestDefinition httpRequest);
Expectation getExpectation();
boolean update(Expectation expectation);
boolean update(RequestDefinition requestDefinition);
@SuppressWarnings("UnusedReturnValue")
HttpRequestMatcher setResponseInProgress(boolean responseInProgress);
boolean isResponseInProgress();
boolean isActive();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy