01: package org.apache.turbine.util.uri;
02:
03: /*
04: * Copyright 2001-2005 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License")
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: /**
20: * This interface contains all the constants that are always needed when
21: * working with URIs.
22: *
23: * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
24: * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
25: * @version $Id: URIConstants.java 264148 2005-08-29 14:21:04Z henning $
26: */
27:
28: public interface URIConstants {
29: /** HTTP protocol. */
30: String HTTP = "http";
31:
32: /** HTTPS protocol. */
33: String HTTPS = "https";
34:
35: /** HTTP Default Port */
36: int HTTP_PORT = 80;
37:
38: /** HTTPS Default Port */
39: int HTTPS_PORT = 443;
40:
41: /** FTP Default Control Port */
42: int FTP_PORT = 20;
43:
44: /** Path Info Data Marker */
45: int PATH_INFO = 0;
46:
47: /** Query Data Marker */
48: int QUERY_DATA = 1;
49:
50: /**
51: * The part of the URI which separates the protocol indicator (i.e. the
52: * scheme) from the rest of the URI.
53: */
54: String URI_SCHEME_SEPARATOR = "://";
55:
56: /** CGI parameter for action name */
57: String CGI_ACTION_PARAM = "action";
58:
59: /** CGI parameter for screen name */
60: String CGI_SCREEN_PARAM = "screen";
61:
62: /** CGI parameter for template name */
63: String CGI_TEMPLATE_PARAM = "template";
64:
65: /** prefix for event names */
66: String EVENT_PREFIX = "eventSubmit_";
67: }
|