79 |
// Reset the protocol (and implicitly the handler) for this URL. |
// Reset the protocol (and implicitly the handler) for this URL. |
80 |
// Then have the URL attempt the connection again, as it will |
// Then have the URL attempt the connection again, as it will |
81 |
// get the changed handler the next time around. |
// get the changed handler the next time around. |
82 |
// N.B.: FTP protocol is not supported by default in GNU Classpath |
// If the ftp protocol handler is not installed, an |
83 |
// but it does not matter because setURL will keep the current protocol |
// exception will be thrown from the new openConnection() call. |
|
// if "ftp" is not available. |
|
84 |
setURL (url, "ftp", url.getHost(), url.getPort(), url.getFile(), |
setURL (url, "ftp", url.getHost(), url.getPort(), url.getFile(), |
85 |
url.getRef()); |
url.getRef()); |
86 |
return url.openConnection(); |
return url.openConnection(); |