com.thoughtworks.webstub.stub.matcher.RequestPartMatcher Maven / Gradle / Ivy
package com.thoughtworks.webstub.stub.matcher;
import com.thoughtworks.webstub.config.HttpConfiguration;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
public abstract class RequestPartMatcher {
protected HttpServletRequest request;
private int failedResponseCode;
protected RequestPartMatcher(HttpServletRequest request, int failedResponseCode) {
this.request = request;
this.failedResponseCode = failedResponseCode;
}
public int failedResponseCode() {
return failedResponseCode;
}
public abstract boolean matches(HttpConfiguration configuration) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy