1 package org.opensrf.net.http;
6 * Handler for async gateway responses.
8 public abstract class HttpRequestHandler {
11 * Called when all responses have been received.
13 * If discardResponses() returns true, will be passed null.
15 public void onComplete(HttpRequest request) {
19 * Called with each response received from the server.
21 * @param payload the value returned from the server.
23 public void onResponse(HttpRequest request, Object response) {