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.FTPClient
createClient
(FileSystemOptions fileSystemOptions) Creates a new client.protected void
setupOpenConnection
(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.ConnectionFactory
Creates a new client.- Specified by:
createClient
in 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.ConnectionFactory
Sets up a new client.- Specified by:
setupOpenConnection
in classFtpClientFactory.ConnectionFactory<org.apache.commons.net.ftp.FTPClient,
FtpFileSystemConfigBuilder> - Parameters:
client
- the client.fileSystemOptions
- the file system options.
-