View Javadoc

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