public class FtpHandler extends URLStreamHandler
| Constructor and Description |
|---|
FtpHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDefaultPort()
Return the default port.
|
protected URLConnection |
openConnection(URL u)
Open a URLConnection on the given URL.
|
protected URLConnection |
openConnection(URL url,
Proxy proxy)
Returns a connection, which is established via the
proxy,
to the FTP server specified by this URL. |
equals, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalFormprotected URLConnection openConnection(URL u) throws IOException
openConnection in class URLStreamHandleru - the URL to the resource where a connection has to be opened.IOException - if an I/O error occurs during opening the connection.protected URLConnection openConnection(URL url, Proxy proxy) throws IOException
proxy,
to the FTP server specified by this URL. If
proxy is DIRECT type, the connection is made in normal
way.openConnection in class URLStreamHandlerurl - the URL which the connection is pointing toproxy - the proxy which is used to make the connectionIOException - if this handler fails to establish a connection.IllegalArgumentException - if any argument is null or the type of proxy is wrong.UnsupportedOperationException - if the protocol handler doesn't support this method.protected int getDefaultPort()
getDefaultPort in class URLStreamHandler