1 package org.esigate.test.conn; 2 3 import java.io.IOException; 4 5 import org.apache.http.HttpRequest; 6 import org.apache.http.HttpResponse; 7 8 /** 9 * A response handler for {@link MockConnectionManager}. 10 * 11 * @author Nicolas Richeton 12 */ 13 public interface IResponseHandler { 14 15 /** 16 * Implement this method to process the HTTP request and provide a custom reponse. 17 * 18 * @param request 19 * @return the response 20 * @throws IOException 21 */ 22 HttpResponse execute(HttpRequest request) throws IOException; 23 }