01: // ContinueEvent.java
02: // $Id: ContinueEvent.java,v 1.6 2000/08/16 21:38:02 ylafon 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: import org.w3c.www.http.HTTP;
09:
10: /**
11: * The continue event notifies the observer of receipt of a continue packet.
12: * Two phases method requires the server to emit an HTTP <code>CONTINUE</code>
13: * status code before going into the second phase. This event is generated
14: * by the <code>HttpManager</code> when such an event is received.
15: */
16:
17: public class ContinueEvent extends RequestEvent {
18: /**
19: * The HTTP <code>CONTINUE</code> packet.
20: */
21: public Reply packet = null;
22:
23: /**
24: * Create a continue event.
25: * @param s The source of the event.
26: * @param request The request being processed.
27: * @param packet The <strong>100</strong> class reply.
28: */
29:
30: public ContinueEvent(HttpServer s, Request request, Reply packet) {
31: super (s, request, EVT_CONTINUE);
32: this .packet = packet;
33: }
34:
35: /**
36: * Create a fake continue event.
37: * This is usefull when upgrading HTTP/1.0 flow to HTTP/1.1.
38: * @param s The source of the event.
39: * @param request The request being processed.
40: */
41:
42: public ContinueEvent(HttpServer s, Request request) {
43: super(s, request, EVT_CONTINUE);
44: this.packet = request.makeReply(HTTP.CONTINUE);
45: }
46: }
|