Package org.mockserver.mock.action
Interface ExpectationResponseCallback
- All Superinterfaces:
ExpectationCallback<HttpResponse>
- All Known Implementing Classes:
CallbackActionExamples.TestExpectationResponseCallback,PrecannedTestExpectationResponseCallback,StaticTestExpectationResponseCallback
- Author:
- jamesdbloom
-
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest httpRequest) Called for every request when expectation condition has been satisfied.
-
Method Details
-
handle
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 returned.- Specified by:
handlein interfaceExpectationCallback<HttpResponse>- Parameters:
httpRequest- the request that satisfied the expectation condition- Returns:
- the response that will be returned
- Throws:
Exception
-