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:
17: package org.apache.coyote;
18:
19: import java.util.Locale;
20:
21: /**
22: * Constants.
23: *
24: * @author Remy Maucherat
25: */
26: public final class Constants {
27:
28: // -------------------------------------------------------------- Constants
29:
30: public static final String DEFAULT_CHARACTER_ENCODING = "ISO-8859-1";
31:
32: public static final String LOCALE_DEFAULT = "en";
33:
34: public static final Locale DEFAULT_LOCALE = new Locale(
35: LOCALE_DEFAULT, "");
36:
37: public static final int MAX_NOTES = 32;
38:
39: // Request states
40: public static final int STAGE_NEW = 0;
41: public static final int STAGE_PARSE = 1;
42: public static final int STAGE_PREPARE = 2;
43: public static final int STAGE_SERVICE = 3;
44: public static final int STAGE_ENDINPUT = 4;
45: public static final int STAGE_ENDOUTPUT = 5;
46: public static final int STAGE_KEEPALIVE = 6;
47: public static final int STAGE_ENDED = 7;
48:
49: }
|