org.mockserver.mock.action
Interface ExpectationCallback


public interface ExpectationCallback

Author:
jamesdbloom

Method Summary
 HttpResponse handle(HttpRequest httpRequest)
          Called for every request when expectation condition has been satisfied.
 

Method Detail

handle

HttpResponse handle(HttpRequest httpRequest)
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 response that will be returned to the client.

Parameters:
httpRequest - the request that satisfied the expectation condition
Returns:
the response that will be returned to the client


Copyright © 2015. All rights reserved.