public class HTTPTunnelConnector extends FTPConnector
closeTimeout, connectionTimeout, readTimeout| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
abortConnectForCommunicationChannel, setCloseTimeout, setConnectionTimeout, setReadTimeout, setUseSuggestedAddressForDataConnections, tcpConnectForCommunicationChannel, tcpConnectForDataTransferChannelpublic HTTPTunnelConnector(java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUser,
java.lang.String proxyPass)
proxyHost - The proxy host name.proxyPort - The proxy port.proxyUser - The username for proxy authentication.proxyPass - The password for proxy authentication.public HTTPTunnelConnector(java.lang.String proxyHost,
int proxyPort)
proxyHost - The proxy host name.proxyPort - The proxy port.public java.net.Socket connectForCommunicationChannel(java.lang.String host,
int port)
throws java.io.IOException
FTPConnectorconnectForCommunicationChannel in class FTPConnectorhost - The remote host name or address.port - The remote port.java.io.IOException - If the connection cannot be established.public java.net.Socket connectForDataTransferChannel(java.lang.String host,
int port)
throws java.io.IOException
FTPConnectorconnectForDataTransferChannel in class FTPConnectorhost - The remote host name or address.port - The remote port.java.io.IOException - If the connection cannot be established.