public final class FtpClientFactory extends Object
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–2015 The Apache Software Foundation. All rights reserved.