KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > turbine > util > uri > URIConstants


1 package org.apache.turbine.util.uri;
2
3 /*
4  * Copyright 2001-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License")
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
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,v 1.6.2.2 2004/05/20 03:28:01 seade Exp $
26  */

27
28 public interface URIConstants
29 {
30     /** HTTP protocol. */
31     String JavaDoc HTTP = "http";
32
33     /** HTTPS protocol. */
34     String JavaDoc HTTPS = "https";
35
36     /** HTTP Default Port */
37     int HTTP_PORT = 80;
38
39     /** HTTPS Default Port */
40     int HTTPS_PORT = 443;
41
42     /** FTP Default Control Port */
43     int FTP_PORT = 20;
44
45     /** Path Info Data Marker */
46     int PATH_INFO = 0;
47
48     /** Query Data Marker */
49     int QUERY_DATA = 1;
50
51     /**
52      * The part of the URI which separates the protocol indicator (i.e. the
53      * scheme) from the rest of the URI.
54      */

55     String JavaDoc URI_SCHEME_SEPARATOR = "://";
56
57     /** CGI parameter for action name */
58     String JavaDoc CGI_ACTION_PARAM = "action";
59
60     /** CGI parameter for screen name */
61     String JavaDoc CGI_SCREEN_PARAM = "screen";
62
63     /** CGI parameter for template name */
64     String JavaDoc CGI_TEMPLATE_PARAM = "template";
65
66     /** prefix for event names */
67     String JavaDoc EVENT_PREFIX = "eventSubmit_";
68 }
69
Popular Tags