public class HttpRequestMatchingContextImpl extends Object implements HttpRequestMatchingContext
HttpRequestMatchingContext implementation.| Constructor and Description |
|---|
HttpRequestMatchingContextImpl(HttpRequest originalRequest,
HttpRequest otherRequest,
HttpResponse response)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
originalRequest()
A request that was expected.
|
HttpRequest |
otherRequest()
Another request that we received and that initially did not match original request.
|
HttpResponse |
response()
Initial response which can have been modified in the meanwhile.
|
public HttpRequestMatchingContextImpl(HttpRequest originalRequest, HttpRequest otherRequest, HttpResponse response)
originalRequest - Should not be null.otherRequest - Should not be null.response - Should not be null.public HttpRequest originalRequest()
originalRequest in interface HttpRequestMatchingContextpublic HttpRequest otherRequest()
otherRequest in interface HttpRequestMatchingContextpublic HttpResponse response()
response in interface HttpRequestMatchingContextCopyright © 2014. All Rights Reserved.