public interface ExpectationForwardAndResponseCallback extends ExpectationForwardCallback
Modifier and Type | Method and Description |
---|---|
default 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.
|
default HttpRequest handle(HttpRequest httpRequest) throws Exception
handle
in interface ExpectationCallback<HttpRequest>
handle
in interface ExpectationForwardCallback
httpRequest
- the request that satisfied the expectation conditionException
HttpResponse handle(HttpRequest httpRequest, HttpResponse httpResponse) throws Exception
httpRequest
- the request that was proxiedhttpResponse
- the response the MockServer will returnException
Copyright © 2020. All rights reserved.