Package org.mockserver.mock.action
Interface ExpectationForwardCallback
-
- All Superinterfaces:
ExpectationCallback<HttpRequest>
- All Known Subinterfaces:
ExpectationForwardAndResponseCallback
- All Known Implementing Classes:
PrecannedTestExpectationForwardCallbackRequest
,PrecannedTestExpectationForwardCallbackRequestAndResponse
public interface ExpectationForwardCallback extends ExpectationCallback<HttpRequest>
- Author:
- jamesdbloom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpRequest
handle(HttpRequest httpRequest)
Called for every request when expectation condition has been satisfied.
-
-
-
Method Detail
-
handle
HttpRequest handle(HttpRequest httpRequest) throws Exception
Called 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:
handle
in interfaceExpectationCallback<HttpRequest>
- Parameters:
httpRequest
- the request that satisfied the expectation condition- Returns:
- the request that will be proxied
- Throws:
Exception
-
-