Interface ExpectationCallback<T extends HttpMessage>
- All Known Subinterfaces:
ExpectationForwardAndResponseCallback,ExpectationForwardCallback,ExpectationResponseCallback
- All Known Implementing Classes:
AbstractRouteProxyCallback,AbstractTigerRouteCallback,ForwardAllCallback,ForwardProxyCallback,ReverseProxyCallback
public interface ExpectationCallback<T extends HttpMessage>
-
Method Summary
Modifier and TypeMethodDescriptioncannedResponse(HttpRequest httpRequest) handle(HttpRequest httpRequest) Called for every request when expectation condition has been satisfied.default booleanmatches(HttpRequest httpRequest)
-
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 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
-
matches
-
cannedResponse
-