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.
|
static org.apache.commons.net.ftp.FTPClient |
createConnection(String hostname,
int port,
char[] username,
char[] password,
String workingDirectory,
FileSystemOptions fileSystemOptions,
Integer defaultTimeout)
Creates a new connection to the server.
|
static org.apache.commons.net.ftp.FTPClient |
createConnection(String hostname,
int port,
char[] username,
char[] password,
String workingDirectory,
FileSystemOptions fileSystemOptions,
String proxyServer,
String proxyPort,
String proxyUser,
String proxyPassword,
String timeout,
String retryCount,
Integer defaultTimeout)
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, Integer defaultTimeout) 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.defaultTimeout - default Timeout for the client connectionFileSystemException - if an error occurs while connecting.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.public static org.apache.commons.net.ftp.FTPClient createConnection(String hostname, int port, char[] username, char[] password, String workingDirectory, FileSystemOptions fileSystemOptions, String proxyServer, String proxyPort, String proxyUser, String proxyPassword, String timeout, String retryCount, Integer defaultTimeout) 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.proxyServer - Proxy server addressproxyPort - Proxy server portproxyUser - Proxy server usernameproxyPassword - Proxy server passworddefaultTimeout - default Timeout for the connectionFileSystemException - if an error occurs while connecting.Copyright © 2002–2018 WSO2. All rights reserved.