henning 2003/03/13 07:05:47
Modified: src/java/org/apache/turbine/util/uri URIConstants.java
Log:
- Move some constants out of ServletUtils.
- remove static final qualifiers
Revision Changes Path
1.4 +19 -10
jakarta-turbine-2/src/java/org/apache/turbine/util/uri/URIConstants.java
Index: URIConstants.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/uri/URIConstants.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- URIConstants.java 9 Mar 2003 07:08:41 -0000 1.3
+++ URIConstants.java 13 Mar 2003 15:05:47 -0000 1.4
@@ -65,29 +65,38 @@
public interface URIConstants
{
/** HTTP protocol. */
- static final String HTTP = "http";
+ String HTTP = "http";
/** HTTPS protocol. */
- static final String HTTPS = "https";
+ String HTTPS = "https";
/** HTTP Default Port */
- static final int HTTP_PORT = 80;
+ int HTTP_PORT = 80;
/** HTTPS Default Port */
- static final int HTTPS_PORT = 443;
+ int HTTPS_PORT = 443;
+
+ /** FTP Default Control Port */
+ int FTP_PORT = 20;
/** Path Info Data Marker */
- static final int PATH_INFO = 0;
+ int PATH_INFO = 0;
/** Query Data Marker */
- static final int QUERY_DATA = 1;
+ int QUERY_DATA = 1;
+
+ /**
+ * The part of the URI which separates the protocol indicator (i.e. the
+ * scheme) from the rest of the URI.
+ */
+ String URI_SCHEME_SEPARATOR = "://";
/** CGI parameter for action name */
- static final String CGI_ACTION_PARAM = "action";
+ String CGI_ACTION_PARAM = "action";
/** CGI parameter for screen name */
- static final String CGI_SCREEN_PARAM = "screen";
+ String CGI_SCREEN_PARAM = "screen";
/** CGI parameter for template name */
- static final String CGI_TEMPLATE_PARAM = "template";
+ String CGI_TEMPLATE_PARAM = "template";
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]