public static class FakeHttpLayer.RequestMatcherResponseRule extends 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,
IOException ioException) |
RequestMatcherResponseRule(RequestMatcher requestMatcher,
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, IOException ioException)
public RequestMatcherResponseRule(RequestMatcher requestMatcher, org.apache.http.HttpException httpException)
public RequestMatcherResponseRule(RequestMatcher requestMatcher, List<? extends org.apache.http.HttpResponse> responses)
public boolean matches(org.apache.http.HttpRequest request)
matches
in interface HttpEntityStub.ResponseRule
public org.apache.http.HttpResponse getResponse() throws org.apache.http.HttpException, IOException
getResponse
in interface HttpEntityStub.ResponseRule
org.apache.http.HttpException
IOException