it.sauronsoftware.ftp4j.connectors
Class HTTPTunnelConnector
java.lang.Object
   it.sauronsoftware.ftp4j.FTPConnector
it.sauronsoftware.ftp4j.FTPConnector
       it.sauronsoftware.ftp4j.connectors.HTTPTunnelConnector
it.sauronsoftware.ftp4j.connectors.HTTPTunnelConnector
- public class HTTPTunnelConnector 
- extends FTPConnector
This one connects a remote ftp host via a HTTP 1.1 proxy which allows
 tunneling through the HTTP CONNECT method.
 
 The connector's default value for the
 useSuggestedAddressForDataConnections flag is false.
- Author:
- Carlo Pelliccia
 
 
| Constructor Summary | 
| HTTPTunnelConnector(java.lang.String proxyHost,
                    int proxyPort)Builds the connector.
 | 
| HTTPTunnelConnector(java.lang.String proxyHost,
                    int proxyPort,
                    java.lang.String proxyUser,
                    java.lang.String proxyPass)Builds the connector.
 | 
 
| Method Summary | 
|  java.net.Socket | connectForCommunicationChannel(java.lang.String host,
                               int port)This methods returns an established connection to a remote host, suitable
 for a FTP communication channel.
 | 
|  java.net.Socket | connectForDataTransferChannel(java.lang.String host,
                              int port)This methods returns an established connection to a remote host, suitable
 for a FTP data transfer channel.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
HTTPTunnelConnector
public HTTPTunnelConnector(java.lang.String proxyHost,
                           int proxyPort,
                           java.lang.String proxyUser,
                           java.lang.String proxyPass)
- Builds the connector.
 
- Parameters:
- proxyHost- The proxy host name.
- proxyPort- The proxy port.
- proxyUser- The username for proxy authentication.
- proxyPass- The password for proxy authentication.
 
HTTPTunnelConnector
public HTTPTunnelConnector(java.lang.String proxyHost,
                           int proxyPort)
- Builds the connector.
 
- Parameters:
- proxyHost- The proxy host name.
- proxyPort- The proxy port.
 
connectForCommunicationChannel
public java.net.Socket connectForCommunicationChannel(java.lang.String host,
                                                      int port)
                                               throws java.io.IOException
- Description copied from class: FTPConnector
- This methods returns an established connection to a remote host, suitable
 for a FTP communication channel.
 
- 
- Specified by:
- connectForCommunicationChannelin class- 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 java.net.Socket connectForDataTransferChannel(java.lang.String host,
                                                     int port)
                                              throws java.io.IOException
- Description copied from class: FTPConnector
- This methods returns an established connection to a remote host, suitable
 for a FTP data transfer channel.
 
- 
- Specified by:
- connectForDataTransferChannelin class- 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.