Class FtpClientFactory.FtpConnectionFactory
java.lang.Object
org.apache.commons.vfs2.provider.ftp.FtpClientFactory.ConnectionFactory<org.apache.commons.net.ftp.FTPClient,FtpFileSystemConfigBuilder>
org.apache.commons.vfs2.provider.ftp.FtpClientFactory.FtpConnectionFactory
- Enclosing class:
FtpClientFactory
public static final class FtpClientFactory.FtpConnectionFactory
extends FtpClientFactory.ConnectionFactory<org.apache.commons.net.ftp.FTPClient,FtpFileSystemConfigBuilder>
Connection Factory, used to configure the FTPClient.
-
Field Summary
Fields inherited from class org.apache.commons.vfs2.provider.ftp.FtpClientFactory.ConnectionFactory
builder -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.net.ftp.FTPClientcreateClient(FileSystemOptions fileSystemOptions) Creates a new client.protected voidsetupOpenConnection(org.apache.commons.net.ftp.FTPClient client, FileSystemOptions fileSystemOptions) Sets up a new client.Methods inherited from class org.apache.commons.vfs2.provider.ftp.FtpClientFactory.ConnectionFactory
createConnection
-
Method Details
-
createClient
Description copied from class:FtpClientFactory.ConnectionFactoryCreates a new client.- Specified by:
createClientin classFtpClientFactory.ConnectionFactory<org.apache.commons.net.ftp.FTPClient,FtpFileSystemConfigBuilder> - Parameters:
fileSystemOptions- the file system options.- Returns:
- a new client.
-
setupOpenConnection
protected void setupOpenConnection(org.apache.commons.net.ftp.FTPClient client, FileSystemOptions fileSystemOptions) Description copied from class:FtpClientFactory.ConnectionFactorySets up a new client.- Specified by:
setupOpenConnectionin classFtpClientFactory.ConnectionFactory<org.apache.commons.net.ftp.FTPClient,FtpFileSystemConfigBuilder> - Parameters:
client- the client.fileSystemOptions- the file system options.
-