public final class FtpClientFactory extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
FtpClientFactory.ConnectionFactory<C extends org.apache.commons.net.ftp.FTPClient,B extends FtpFileSystemConfigBuilder> |
Abstract Factory, used to configure different FTPClients.
|
static class |
FtpClientFactory.FtpConnectionFactory |
Connection Factory, used to configure the FTPClient.
|
Modifier and Type | Method | Description |
---|---|---|
static org.apache.commons.net.ftp.FTPClient |
createConnection(java.lang.String hostname,
int port,
char[] username,
char[] password,
java.lang.String workingDirectory,
FileSystemOptions fileSystemOptions) |
Creates a new connection to the server.
|
public static org.apache.commons.net.ftp.FTPClient createConnection(java.lang.String hostname, int port, char[] username, char[] password, java.lang.String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException
hostname
- The host name of the server.port
- The port to connect to.username
- The name of the user for authentication.password
- The user's password.workingDirectory
- The base directory.fileSystemOptions
- The FileSystemOptions.FileSystemException
- if an error occurs while connecting.