Class CallbackActionExamples.TestExpectationResponseCallback
- java.lang.Object
-
- org.mockserver.examples.mockserver.CallbackActionExamples.TestExpectationResponseCallback
-
- All Implemented Interfaces:
ExpectationCallback<HttpResponse>,ExpectationResponseCallback
- Enclosing class:
- CallbackActionExamples
public static class CallbackActionExamples.TestExpectationResponseCallback extends Object implements ExpectationResponseCallback
-
-
Constructor Summary
Constructors Constructor Description TestExpectationResponseCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponsehandle(HttpRequest httpRequest)Called for every request when expectation condition has been satisfied.
-
-
-
Method Detail
-
handle
public HttpResponse handle(HttpRequest httpRequest)
Description copied from interface:ExpectationResponseCallbackCalled 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>- Specified by:
handlein interfaceExpectationResponseCallback- Parameters:
httpRequest- the request that satisfied the expectation condition- Returns:
- the response that will be returned
-
-