Commit | Line | Data |
61962ef7 |
1 | /* |
2 | * @(#)FCGIGlobalDefs.java |
3 | * |
4 | * |
5 | * FastCGi compatibility package Interface |
6 | * |
7 | * |
8 | * Copyright (c) 1996 Open Market, Inc. |
9 | * |
10 | * See the file "LICENSE.TERMS" for information on usage and redistribution |
11 | * of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
12 | * |
13 | * $Id: FCGIGlobalDefs.java,v 1.1 1999/01/31 02:45:51 roberts Exp $ |
14 | */ |
15 | |
16 | /* This class contains FCGI global definitions corresponding to |
17 | * the #defs in the C version. |
18 | */ |
19 | import java.io.PrintStream; |
20 | |
21 | public abstract class FCGIGlobalDefs { |
22 | |
23 | public static final int def_FCGIMaxLen = 0xffff; |
24 | /* |
25 | * Define Length of FCGI message bodies in bytes |
26 | */ |
27 | public static final int def_FCGIHeaderLen = 8; |
28 | public static final int def_FCGIEndReqBodyLen = 8; |
29 | public static final int def_FCGIBeginReqBodyLen = 8; |
30 | public static final int def_FCGIUnknownBodyTypeBodyLen = 8; |
31 | /* |
32 | * Header defines |
33 | */ |
34 | public static int def_FCGIVersion1 = 1; |
35 | /* FCGI Record Types */ |
36 | public static final int def_FCGIBeginRequest = 1; |
37 | public static final int def_FCGIAbortRequest = 2; |
38 | public static final int def_FCGIEndRequest = 3; |
39 | public static final int def_FCGIParams = 4; |
40 | public static final int def_FCGIStdin = 5; |
41 | public static final int def_FCGIStdout = 6; |
42 | public static final int def_FCGIStderr = 7; |
43 | public static final int def_FCGIData = 8; |
44 | public static final int def_FCGIGetValues = 9; |
45 | public static final int def_FCGIGetValuesResult = 10; |
46 | public static final int def_FCGIUnknownType = 11; |
47 | public static final int def_FCGIMaxType = def_FCGIUnknownType; |
48 | /* Request ID Values */ |
49 | public static final int def_FCGINullRequestID = 0; |
50 | /* |
51 | * Begin Request defines |
52 | */ |
53 | /* Mask flags */ |
54 | public static int def_FCGIKeepConn = 1; |
55 | /* Roles */ |
56 | public static final int def_FCGIResponder = 1; |
57 | public static final int def_FCGIAuthorizer = 2; |
58 | public static final int def_FCGIFilter = 3; |
59 | /* |
60 | * End Request defines |
61 | */ |
62 | /* Protocol status */ |
63 | public static final int def_FCGIRequestComplete = 0; |
64 | public static final int def_FCGICantMpxConn = 1; |
65 | public static final int def_FCGIOverload = 2; |
66 | public static final int def_FCGIUnknownRole = 3; |
67 | /* |
68 | * Get Values, Get Values Results defines |
69 | */ |
70 | public static final String def_FCGIMaxConns = "FCGI_MAX_CONNS"; |
71 | public static final String def_FCGIMaxReqs = "FCGI_MAX_REQS"; |
72 | public static final String def_FCGIMpxsConns = "FCGI_MPXS_CONNS"; |
73 | /* |
74 | * Return codes for Process* functions |
75 | */ |
76 | public static final int def_FCGIStreamRecord = 0; |
77 | public static final int def_FCGISkip = 1; |
78 | public static final int def_FCGIBeginRecord = 2; |
79 | public static final int def_FCGIMgmtRecord = 3; |
80 | /* |
81 | * Error Codes |
82 | */ |
83 | public static final int def_FCGIUnsupportedVersion = -2; |
84 | public static final int def_FCGIProtocolError = -3; |
85 | public static final int def_FCGIParamsError = -4; |
86 | public static final int def_FCGICallSeqError = -5; |
87 | } |