it.sauronsoftware.ftp4j
Interface FTPConnector

All Known Implementing Classes:
DirectConnector, FTPProxyConnector, HTTPTunnelConnector, SOCKS4Connector, SOCKS5Connector

public interface FTPConnector

This interface describes a connector. Connectors are used by the client to establish connections with remote servers.

Author:
Carlo Pelliccia

Method Summary
 FTPConnection connectForCommunicationChannel(java.lang.String host, int port)
          This methods returns an established connection to a remote host, suitable for a FTP communication channel.
 FTPConnection connectForDataTransferChannel(java.lang.String host, int port)
          This methods returns an established connection to a remote host, suitable for a FTP data transfer channel.
 

Method Detail

connectForCommunicationChannel

public FTPConnection connectForCommunicationChannel(java.lang.String host,
                                                    int port)
                                             throws java.io.IOException
This methods returns an established connection to a remote host, suitable for a FTP communication channel.

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
This methods returns an established connection to a remote host, suitable for a FTP data transfer channel.

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.