it.sauronsoftware.ftp4j.connectors
Class DirectConnector
java.lang.Object
it.sauronsoftware.ftp4j.connectors.DirectConnector
- All Implemented Interfaces:
- FTPConnector
- public class DirectConnector
- extends java.lang.Object
- implements FTPConnector
The DirectConnector connects the remote host with a straight socket
connection, using no proxy.
- Author:
- Carlo Pelliccia
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectConnector
public DirectConnector()
connectForCommunicationChannel
public FTPConnection connectForCommunicationChannel(java.lang.String host,
int port)
throws java.io.IOException
- Description copied from interface:
FTPConnector
- This methods returns an established connection to a remote host, suitable
for a FTP communication channel.
- Specified by:
connectForCommunicationChannel
in interface FTPConnector
- Parameters:
host
- The remote host name or address.port
- The remote port.
- Returns:
- The connection with the remote host.
- Throws:
java.io.IOException
- If the connection cannot be established.
connectForDataTransferChannel
public FTPConnection connectForDataTransferChannel(java.lang.String host,
int port)
throws java.io.IOException
- Description copied from interface:
FTPConnector
- This methods returns an established connection to a remote host, suitable
for a FTP data transfer channel.
- Specified by:
connectForDataTransferChannel
in interface FTPConnector
- Parameters:
host
- The remote host name or address.port
- The remote port.
- Returns:
- The connection with the remote host.
- Throws:
java.io.IOException
- If the connection cannot be established.