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 ExpectationForwardCallbackhttpRequest - the request that satisfied the expectation conditionExceptionHttpResponse handle(HttpRequest httpRequest, HttpResponse httpResponse) throws Exception
httpRequest - the request that was proxiedhttpResponse - the response the MockServer will returnExceptionCopyright © 2022. All rights reserved.