KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > coyote > tomcat5 > Constants


1
2
3 /*
4  * The contents of this file are subject to the terms
5  * of the Common Development and Distribution License
6  * (the "License"). You may not use this file except
7  * in compliance with the License.
8  *
9  * You can obtain a copy of the license at
10  * glassfish/bootstrap/legal/CDDLv1.0.txt or
11  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
12  * See the License for the specific language governing
13  * permissions and limitations under the License.
14  *
15  * When distributing Covered Code, include this CDDL
16  * HEADER in each file and include the License file at
17  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
18  * add the following below this CDDL HEADER, with the
19  * fields enclosed by brackets "[]" replaced with your
20  * own identifying information: Portions Copyright [yyyy]
21  * [name of copyright owner]
22  *
23  * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24  *
25  * Portions Copyright Apache Software Foundation.
26  */

27 package org.apache.coyote.tomcat5;
28
29 /**
30  * Constants.
31  *
32  * @author Remy Maucherat
33  */

34 public final class Constants {
35
36
37     // -------------------------------------------------------------- Constants
38

39
40     public static final String JavaDoc Package = "org.apache.coyote.tomcat5";
41     public static final int DEFAULT_CONNECTION_LINGER = -1;
42     public static final int DEFAULT_CONNECTION_TIMEOUT = 60000;
43     public static final int DEFAULT_CONNECTION_UPLOAD_TIMEOUT = 300000;
44     public static final int DEFAULT_SERVER_SOCKET_TIMEOUT = 0;
45
46     public static final int PROCESSOR_IDLE = 0;
47     public static final int PROCESSOR_ACTIVE = 1;
48
49     /**
50      * Default header names.
51      */

52     public static final String JavaDoc AUTHORIZATION_HEADER = "authorization";
53
54     /**
55      * SSL Certificate Request Attributite.
56      */

57     public static final String JavaDoc SSL_CERTIFICATE_ATTR = "org.apache.coyote.request.X509Certificate";
58
59     /**
60      * Security flag.
61      */

62     public static final boolean SECURITY =
63         (System.getSecurityManager() != null);
64
65     
66     // S1AS 4703023
67
public static final int DEFAULT_MAX_DISPATCH_DEPTH = 20;
68
69     
70     // START SJSAS 6328909
71
/**
72      * The default response-type
73      */

74     public final static String JavaDoc DEFAULT_RESPONSE_TYPE =
75             "text/plain; charset=iso-8859-1";
76
77
78     /**
79      * The forced response-type
80      */

81     public final static String JavaDoc FORCED_RESPONSE_TYPE =
82            "text/plain; charset=iso-8859-1";
83     // END SJSAS 6328909
84

85
86     // START SJSAS 6337561
87
public final static String JavaDoc PROXY_JROUTE = "proxy-jroute";
88     // END SJSAS 6337561
89

90     // START SJSAS 6346226
91
public final static String JavaDoc JROUTE_COOKIE = "JROUTE";
92     // END SJSAS 6346226
93

94 }
95
Popular Tags