public static class FakeHttpLayer.RequestMatcherResponseRule extends java.lang.Object implements HttpEntityStub.ResponseRule
| Constructor and Description |
|---|
RequestMatcherResponseRule(RequestMatcher requestMatcher,
org.apache.http.HttpException httpException) |
RequestMatcherResponseRule(RequestMatcher requestMatcher,
org.apache.http.HttpResponse responseToGive) |
RequestMatcherResponseRule(RequestMatcher requestMatcher,
java.io.IOException ioException) |
RequestMatcherResponseRule(RequestMatcher requestMatcher,
java.util.List<? extends org.apache.http.HttpResponse> responses) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.HttpResponse |
getResponse() |
boolean |
matches(org.apache.http.HttpRequest request) |
public RequestMatcherResponseRule(RequestMatcher requestMatcher, org.apache.http.HttpResponse responseToGive)
public RequestMatcherResponseRule(RequestMatcher requestMatcher, java.io.IOException ioException)
public RequestMatcherResponseRule(RequestMatcher requestMatcher, org.apache.http.HttpException httpException)
public RequestMatcherResponseRule(RequestMatcher requestMatcher, java.util.List<? extends org.apache.http.HttpResponse> responses)
public boolean matches(org.apache.http.HttpRequest request)
matches in interface HttpEntityStub.ResponseRulepublic org.apache.http.HttpResponse getResponse()
throws org.apache.http.HttpException,
java.io.IOException
getResponse in interface HttpEntityStub.ResponseRuleorg.apache.http.HttpExceptionjava.io.IOException