Class PrecannedTestExpectationForwardCallbackRequestAndResponse
java.lang.Object
org.mockserver.testing.integration.callback.PrecannedTestExpectationForwardCallbackRequestAndResponse
- All Implemented Interfaces:
ExpectationCallback<HttpRequest>,ExpectationForwardAndResponseCallback,ExpectationForwardCallback
public class PrecannedTestExpectationForwardCallbackRequestAndResponse
extends Object
implements ExpectationForwardAndResponseCallback
- Author:
- jamesdbloom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest httpRequest) Called for every request when expectation condition has been satisfied.handle(HttpRequest httpRequest, HttpResponse httpResponse) Called for every response received from a proxied request, the return value is the returned by MockServer.
-
Constructor Details
-
PrecannedTestExpectationForwardCallbackRequestAndResponse
public PrecannedTestExpectationForwardCallbackRequestAndResponse()
-
-
Method Details
-
handle
Description copied from interface:ExpectationForwardAndResponseCallbackCalled for every request when expectation condition has been satisfied. The request that satisfied the expectation condition is passed as the parameter and the return value is the request that will be proxied.- Specified by:
handlein interfaceExpectationCallback<HttpRequest>- Specified by:
handlein interfaceExpectationForwardAndResponseCallback- Specified by:
handlein interfaceExpectationForwardCallback- Parameters:
httpRequest- the request that satisfied the expectation condition- Returns:
- the request that will be proxied
-
handle
Description copied from interface:ExpectationForwardAndResponseCallbackCalled for every response received from a proxied request, the return value is the returned by MockServer.- Specified by:
handlein interfaceExpectationForwardAndResponseCallback- Parameters:
httpRequest- the request that was proxiedhttpResponse- the response the MockServer will return- Returns:
- the request that will be proxied
-