01: /*
02: * @(#)HTTPClientModuleConstants.java 0.3-2 18/06/1999
03: *
04: * This file is part of the HTTPClient package
05: * Copyright (C) 1996-1999 Ronald Tschalär
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this library; if not, write to the Free
19: * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20: * MA 02111-1307, USA
21: *
22: * For questions, suggestions, bug-reports, enhancement-requests etc.
23: * I may be contacted at:
24: *
25: * ronald@innovation.ch
26: *
27: */
28:
29: package HTTPClient;
30:
31: /**
32: * This interface defines the return codes that the handlers in modules
33: * may return.
34: *
35: * @see HTTPClientModule
36: * @version 0.3-2 18/06/1999
37: * @author Ronald Tschalär
38: * @since V0.3
39: */
40:
41: public interface HTTPClientModuleConstants {
42: // valid return codes for request handlers
43:
44: /** continue processing the request */
45: int REQ_CONTINUE = 0;
46:
47: /** restart request processing with first module */
48: int REQ_RESTART = 1;
49:
50: /** stop processing and send the request */
51: int REQ_SHORTCIRC = 2;
52:
53: /** response generated; go to phase 2 */
54: int REQ_RESPONSE = 3;
55:
56: /** response generated; return response immediately (no processing) */
57: int REQ_RETURN = 4;
58:
59: /** using a new HTTPConnection, restart request processing */
60: int REQ_NEWCON_RST = 5;
61:
62: /** using a new HTTPConnection, send request immediately */
63: int REQ_NEWCON_SND = 6;
64:
65: // valid return codes for the phase 2 response handlers
66:
67: /** continue processing response */
68: int RSP_CONTINUE = 10;
69:
70: /** restart response processing with first module */
71: int RSP_RESTART = 11;
72:
73: /** stop processing and return response */
74: int RSP_SHORTCIRC = 12;
75:
76: /** new request generated; go to phase 1 */
77: int RSP_REQUEST = 13;
78:
79: /** new request generated; send request immediately (no processing) */
80: int RSP_SEND = 14;
81:
82: /** go to phase 1 using a new HTTPConnection */
83: int RSP_NEWCON_REQ = 15;
84:
85: /** send request using a new HTTPConnection */
86: int RSP_NEWCON_SND = 16;
87: }
|