public final class FtpClientFactory extends Object
| Modifier and Type | Class and 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 and Description |
|---|---|
static org.apache.commons.net.ftp.FTPClient |
createConnection(String hostname,
int port,
char[] username,
char[] password,
String workingDirectory,
FileSystemOptions fileSystemOptions)
Creates a new connection to the server.
|
public static org.apache.commons.net.ftp.FTPClient createConnection(String hostname, int port, char[] username, char[] password, 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.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.