Class FtpClientFactory.ConnectionFactory<C extends org.apache.commons.net.ftp.FTPClient,B extends FtpFileSystemConfigBuilder>
java.lang.Object
org.apache.commons.vfs2.provider.ftp.FtpClientFactory.ConnectionFactory<C,B>
- Direct Known Subclasses:
FtpClientFactory.FtpConnectionFactory
- Enclosing class:
- FtpClientFactory
public abstract static class FtpClientFactory.ConnectionFactory<C extends org.apache.commons.net.ftp.FTPClient,B extends FtpFileSystemConfigBuilder>
extends Object
Abstract Factory, used to configure different FTPClients.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract C
createClient
(FileSystemOptions fileSystemOptions) createConnection
(String hostname, int port, char[] username, char[] password, String workingDirectory, FileSystemOptions fileSystemOptions) protected abstract void
setupOpenConnection
(C client, FileSystemOptions fileSystemOptions)
-
Field Details
-
builder
-
-
Constructor Details
-
ConnectionFactory
-
-
Method Details
-
createConnection
public C createConnection(String hostname, int port, char[] username, char[] password, String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException - Throws:
FileSystemException
-
createClient
- Throws:
FileSystemException
-
setupOpenConnection
protected abstract void setupOpenConnection(C client, FileSystemOptions fileSystemOptions) throws IOException - Throws:
IOException
-