|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sauronsoftware.ftp4j.connectors.FTPProxyConnector
public class FTPProxyConnector
This one connects a remote host via a FTP proxy which supports the SITE or the OPEN proxy method.
Field Summary | |
---|---|
int |
style
The style used by the proxy. |
static int |
STYLE_OPEN_COMMAND
Requires the connection to the remote host through a OPEN command without proxy authentication. |
static int |
STYLE_SITE_COMMAND
Requires the connection to the remote host through a SITE command after proxy authentication. |
Constructor Summary | |
---|---|
FTPProxyConnector(java.lang.String proxyHost,
int proxyPort)
Builds the connector. |
|
FTPProxyConnector(java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUser,
java.lang.String proxyPass)
Builds the connector. |
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. |
void |
setStyle(int style)
Sets the style used by the proxy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int STYLE_SITE_COMMAND
public static int STYLE_OPEN_COMMAND
public int style
Constructor Detail |
---|
public FTPProxyConnector(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 FTPProxyConnector(java.lang.String proxyHost, int proxyPort)
proxyHost
- The proxy host name.proxyPort
- The proxy port.Method Detail |
---|
public void setStyle(int style)
STYLE_SITE_COMMAND
- Requires the connection to
the remote host through a SITE command after proxy authentication.
STYLE_OPEN_COMMAND
- Requires the connection to
the remote host through a OPEN command without proxy authentication.
Default value for the style is STYLE_SITE_COMMAND.
style
- The style.STYLE_SITE_COMMAND
,
STYLE_OPEN_COMMAND
public FTPConnection connectForCommunicationChannel(java.lang.String host, int port) throws java.io.IOException
FTPConnector
connectForCommunicationChannel
in interface FTPConnector
host
- The remote host name or address.port
- The remote port.
java.io.IOException
- If the connection cannot be established.public FTPConnection connectForDataTransferChannel(java.lang.String host, int port) throws java.io.IOException
FTPConnector
connectForDataTransferChannel
in interface FTPConnector
host
- The remote host name or address.port
- The remote port.
java.io.IOException
- If the connection cannot be established.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |