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