View Javadoc

1   package org.apache.turbine.util.uri;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "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  {
33      /*** HTTP protocol. */
34      String HTTP = "http";
35  
36      /*** HTTPS protocol. */
37      String HTTPS = "https";
38  
39      /*** HTTP Default Port */
40      int HTTP_PORT = 80;
41  
42      /*** HTTPS Default Port */
43      int HTTPS_PORT = 443;
44  
45      /*** FTP Default Control Port */
46      int FTP_PORT = 20;
47  
48      /*** Path Info Data Marker */
49      int PATH_INFO = 0;
50  
51      /*** Query Data Marker */
52      int QUERY_DATA = 1;
53  
54      /***
55       * The part of the URI which separates the protocol indicator (i.e. the
56       * scheme) from the rest of the URI.
57       */
58      String URI_SCHEME_SEPARATOR = "://";
59  
60      /*** CGI parameter for action name */
61      String CGI_ACTION_PARAM = "action";
62  
63      /*** CGI parameter for screen name */
64      String CGI_SCREEN_PARAM = "screen";
65  
66      /*** CGI parameter for template name */
67      String CGI_TEMPLATE_PARAM = "template";
68  
69      /*** prefix for event names */
70      String EVENT_PREFIX = "eventSubmit_";
71  }