Package org.mockserver.mock.action
Interface ExpectationCallback<T extends HttpObject>
-
- All Known Subinterfaces:
ExpectationForwardCallback
,ExpectationResponseCallback
- All Known Implementing Classes:
PrecannedTestExpectationForwardCallback
,PrecannedTestExpectationResponseCallback
,StaticTestExpectationResponseCallback
public interface ExpectationCallback<T extends HttpObject>
- Author:
- jamesdbloom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
handle(HttpRequest httpRequest)
Called for every request when expectation condition has been satisfied.
-
-
-
Method Detail
-
handle
T 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 or returned.- Parameters:
httpRequest
- the request that satisfied the expectation condition- Returns:
- the request that will be proxied or the response that will be returned
- Throws:
Exception
-
-