HttpEntityStub.ResponseRule
public static class FakeHttpLayer.RequestMatcherResponseRule extends Object implements HttpEntityStub.ResponseRule
Constructor | Description |
---|---|
RequestMatcherResponseRule(RequestMatcher requestMatcher,
IOException ioException) |
|
RequestMatcherResponseRule(RequestMatcher requestMatcher,
List<? extends org.apache.http.HttpResponse> responses) |
|
RequestMatcherResponseRule(RequestMatcher requestMatcher,
org.apache.http.HttpException httpException) |
|
RequestMatcherResponseRule(RequestMatcher requestMatcher,
org.apache.http.HttpResponse responseToGive) |
Modifier and Type | Method | 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