com.thoughtworks.webstub.stub.matcher.RequestPartMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-stub Show documentation
Show all versions of web-stub Show documentation
Library for stubbing external HTTP dependencies
The newest version!
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;
}