public class FTPSSocketFactory extends SocketFactory
| Constructor and Description |
|---|
FTPSSocketFactory(SSLContext context)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress address,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(String address,
int port) |
Socket |
createSocket(String address,
int port,
InetAddress localAddress,
int localPort) |
getDefaultpublic FTPSSocketFactory(SSLContext context)
context - The SSL context.public Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String address, int port) throws UnknownHostException, IOException
createSocket in class SocketFactoryUnknownHostExceptionIOExceptionpublic Socket createSocket(String address, int port, InetAddress localAddress, int localPort) throws UnknownHostException, IOException
createSocket in class SocketFactoryUnknownHostExceptionIOException