|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sauronsoftware.ftp4j.FTPConnector
it.sauronsoftware.ftp4j.connectors.DirectConnector
public class DirectConnector
The DirectConnector connects the remote host with a straight socket connection, using no proxy. The connector's default value for the useSuggestedAddressForDataConnections flag is false.
Field Summary |
---|
Fields inherited from class it.sauronsoftware.ftp4j.FTPConnector |
---|
closeTimeout, connectionTimeout, readTimeout |
Constructor Summary | |
---|---|
DirectConnector()
|
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 it.sauronsoftware.ftp4j.FTPConnector |
---|
abortConnectForCommunicationChannel, setCloseTimeout, setConnectionTimeout, setReadTimeout, setUseSuggestedAddressForDataConnections, tcpConnectForCommunicationChannel, tcpConnectForDataTransferChannel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectConnector()
Method Detail |
---|
public java.net.Socket connectForCommunicationChannel(java.lang.String host, int port) throws java.io.IOException
FTPConnector
connectForCommunicationChannel
in class FTPConnector
host
- 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
FTPConnector
connectForDataTransferChannel
in class 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 |