public class PrecannedTestExpectationForwardCallbackRequestAndResponse extends Object implements ExpectationForwardAndResponseCallback
| Constructor and Description |
|---|
PrecannedTestExpectationForwardCallbackRequestAndResponse() |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
handle(HttpRequest httpRequest)
Called for every request when expectation condition has been satisfied.
|
HttpResponse |
handle(HttpRequest httpRequest,
HttpResponse httpResponse)
Called for every response received from a proxied request, the return
value is the returned by MockServer.
|
public PrecannedTestExpectationForwardCallbackRequestAndResponse()
public HttpRequest handle(HttpRequest httpRequest)
ExpectationForwardAndResponseCallbackhandle in interface ExpectationCallback<HttpRequest>handle in interface ExpectationForwardAndResponseCallbackhandle in interface ExpectationForwardCallbackhttpRequest - the request that satisfied the expectation conditionpublic HttpResponse handle(HttpRequest httpRequest, HttpResponse httpResponse)
ExpectationForwardAndResponseCallbackhandle in interface ExpectationForwardAndResponseCallbackhttpRequest - the request that was proxiedhttpResponse - the response the MockServer will returnCopyright © 2020. All rights reserved.