Index: src/java/org/apache/commons/httpclient/HttpsURL.java =================================================================== RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpsURL.java,v retrieving revision 1.6 diff -u -r1.6 HttpsURL.java --- src/java/org/apache/commons/httpclient/HttpsURL.java 13 Feb 2003 05:08:18 -0000 1.6 +++ src/java/org/apache/commons/httpclient/HttpsURL.java 28 Jan 2004 09:13:30 -0000 @@ -440,6 +440,37 @@ */ static final long serialVersionUID = 887844277028676648L; + // ------------------------------------------------------------- The scheme + + /** + * Get the scheme. You can get the scheme explicitly. + * + * @return the scheme + */ + public char[] getRawScheme() { + return (_scheme == null) ? null : DEFAULT_SCHEME; + } + + + /** + * Get the scheme. You can get the scheme explicitly. + * + * @return the scheme null if empty or undefined + */ + public String getScheme() { + return (_scheme == null) ? null : new String(DEFAULT_SCHEME); + } + + // --------------------------------------------------------------- The port + + /** + * Get the port number. + * @return the port number + */ + public int getPort() { + return (_port == -1) ? DEFAULT_PORT : _port; + } + // ---------------------------------------------------------------- Utility /**