Package org.apache.commons.net.ftp
Class FTPSSocketFactory
java.lang.Object
javax.net.SocketFactory
org.apache.commons.net.ftp.FTPSSocketFactory
Socket factory for FTPS connections.
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateServerSocket
(int port) Deprecated.createServerSocket
(int port, int backlog) Deprecated.(2.2) useinstead
createServerSocket
(int port, int backlog, InetAddress ifAddress) Deprecated.(2.2) useinstead
createSocket
(String address, int port) createSocket
(String address, int port, InetAddress localAddress, int localPort) createSocket
(InetAddress address, int port) createSocket
(InetAddress address, int port, InetAddress localAddress, int localPort) init
(ServerSocket socket) Deprecated.Methods inherited from class javax.net.SocketFactory
getDefault
-
Constructor Details
-
FTPSSocketFactory
-
-
Method Details
-
createServerSocket
Deprecated.(2.2) useinstead
- Parameters:
port
- the port- Returns:
- the socket
- Throws:
IOException
- on error
-
createServerSocket
Deprecated.(2.2) useinstead
- Parameters:
port
- the portbacklog
- the backlog- Returns:
- the socket
- Throws:
IOException
- on error
-
createServerSocket
@Deprecated public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException Deprecated.(2.2) useinstead
- Parameters:
port
- the portbacklog
- the backlogifAddress
- the interface- Returns:
- the socket
- Throws:
IOException
- on error
-
createSocket
- Overrides:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
UnknownHostException
IOException
-
createSocket
public Socket createSocket(String address, int port, InetAddress localAddress, int localPort) throws UnknownHostException, IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
UnknownHostException
IOException
-
init
Deprecated.- Parameters:
socket
- the socket- Returns:
- the socket
- Throws:
IOException
- on error
-
instead