001package org.apache.turbine.util.uri; 002 003 004/* 005 * Licensed to the Apache Software Foundation (ASF) under one 006 * or more contributor license agreements. See the NOTICE file 007 * distributed with this work for additional information 008 * regarding copyright ownership. The ASF licenses this file 009 * to you under the Apache License, Version 2.0 (the 010 * "License"); you may not use this file except in compliance 011 * with the License. You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, 016 * software distributed under the License is distributed on an 017 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 018 * KIND, either express or implied. See the License for the 019 * specific language governing permissions and limitations 020 * under the License. 021 */ 022 023 024/** 025 * This interface contains all the constants that are always needed when 026 * working with URIs. 027 * 028 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a> 029 * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a> 030 * @version $Id$ 031 */ 032 033public interface URIConstants 034{ 035 /** HTTP protocol. */ 036 String HTTP = "http"; 037 038 /** HTTPS protocol. */ 039 String HTTPS = "https"; 040 041 /** HTTP Default Port */ 042 int HTTP_PORT = 80; 043 044 /** HTTPS Default Port */ 045 int HTTPS_PORT = 443; 046 047 /** FTP Default Control Port */ 048 int FTP_PORT = 20; 049 050 /** Path Info Data Marker */ 051 int PATH_INFO = 0; 052 053 /** Query Data Marker */ 054 int QUERY_DATA = 1; 055 056 /** 057 * The part of the URI which separates the protocol indicator (i.e. the 058 * scheme) from the rest of the URI. 059 */ 060 String URI_SCHEME_SEPARATOR = "://"; 061 062 /** CGI parameter for action name */ 063 String CGI_ACTION_PARAM = "action"; 064 065 /** CGI parameter for screen name */ 066 String CGI_SCREEN_PARAM = "screen"; 067 068 /** CGI parameter for template name */ 069 String CGI_TEMPLATE_PARAM = "template"; 070 071 /** prefix for event names */ 072 String EVENT_PREFIX = "eventSubmit_"; 073}