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 java.lang.ObjectAbstract Factory, used to configure different FTPClients.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConnectionFactory(B builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CcreateClient(FileSystemOptions fileSystemOptions)CcreateConnection(java.lang.String hostname, int port, char[] username, char[] password, java.lang.String workingDirectory, FileSystemOptions fileSystemOptions)protected abstract voidsetupOpenConnection(C client, FileSystemOptions fileSystemOptions)
-
-
-
Field Detail
-
builder
protected B extends FtpFileSystemConfigBuilder builder
-
-
Constructor Detail
-
ConnectionFactory
protected ConnectionFactory(B builder)
-
-
Method Detail
-
createConnection
public C createConnection(java.lang.String hostname, int port, char[] username, char[] password, java.lang.String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException
- Throws:
FileSystemException
-
createClient
protected abstract C createClient(FileSystemOptions fileSystemOptions) throws FileSystemException
- Throws:
FileSystemException
-
setupOpenConnection
protected abstract void setupOpenConnection(C client, FileSystemOptions fileSystemOptions) throws java.io.IOException
- Throws:
java.io.IOException
-
-