01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.apache.coyote.tomcat5;
17:
18: /**
19: * Constants.
20: *
21: * @author Remy Maucherat
22: */
23: public final class Constants {
24:
25: // -------------------------------------------------------------- Constants
26:
27: public static final String Package = "org.apache.coyote.tomcat5";
28: public static final int DEFAULT_CONNECTION_LINGER = -1;
29: public static final int DEFAULT_CONNECTION_TIMEOUT = 60000;
30: public static final int DEFAULT_CONNECTION_UPLOAD_TIMEOUT = 300000;
31: public static final int DEFAULT_SERVER_SOCKET_TIMEOUT = 0;
32:
33: public static final int PROCESSOR_IDLE = 0;
34: public static final int PROCESSOR_ACTIVE = 1;
35:
36: /**
37: * Default header names.
38: */
39: public static final String AUTHORIZATION_HEADER = "authorization";
40:
41: /**
42: * SSL Certificate Request Attributite.
43: */
44: public static final String SSL_CERTIFICATE_ATTR = "org.apache.coyote.request.X509Certificate";
45:
46: /**
47: * Security flag.
48: */
49: public static final boolean SECURITY = (System.getSecurityManager() != null);
50:
51: }
|