01: // RequestObserver.java
02: // $Id: RequestObserver.java,v 1.4 1998/01/22 14:36:13 bmahe Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.www.protocol.http;
07:
08: /**
09: * The interface to be implemented by request observers.
10: * Request observers are objects that will be notified of the progress
11: * made in processing an asynchronous request. Asynchronous requests are
12: * launched by a call to the <code>runRequest</code> method of the
13: * <code>Httpmanager</code> class.
14: * <p>While being processed, a request goes through a number of different
15: * status, described below. Each time the status of a request changes, the
16: * appropriate observer gets called back.
17: */
18:
19: public interface RequestObserver {
20:
21: /**
22: * Call back, invoked by the HttpManager callback thread.
23: * Each time a request status changes (due to progress in its processing)
24: * this callback gets called, with the new status as an argument.
25: * @param preq The pending request that has made some progress.
26: * @param event The event to broadcast.
27: */
28:
29: public void notifyProgress(RequestEvent event);
30:
31: }
|