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)
ExpectationForwardAndResponseCallback
handle
in interface ExpectationCallback<HttpRequest>
handle
in interface ExpectationForwardAndResponseCallback
handle
in interface ExpectationForwardCallback
httpRequest
- the request that satisfied the expectation conditionpublic HttpResponse handle(HttpRequest httpRequest, HttpResponse httpResponse)
ExpectationForwardAndResponseCallback
handle
in interface ExpectationForwardAndResponseCallback
httpRequest
- the request that was proxiedhttpResponse
- the response the MockServer will returnCopyright © 2020. All rights reserved.