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>
- Type Parameters:
C
- The type of FTPClient.B
- The type of FtpFileSystemConfigBuilder
- 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
FieldsModifier and TypeFieldDescriptionprivate static final char[]
private static final int
protected B
private final org.apache.commons.logging.Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
configureClient
(FileSystemOptions fileSystemOptions, C client) protected 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
-
ANON_CHAR_ARRAY
private static final char[] ANON_CHAR_ARRAY -
BUFSZ
private static final int BUFSZ- See Also:
-
log
private final org.apache.commons.logging.Log log -
builder
-
-
Constructor Details
-
ConnectionFactory
-
-
Method Details
-
configureClient
-
createClient
- Throws:
FileSystemException
-
createConnection
public C createConnection(String hostname, int port, char[] username, char[] password, String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException - Throws:
FileSystemException
-
setupOpenConnection
protected abstract void setupOpenConnection(C client, FileSystemOptions fileSystemOptions) throws IOException - Throws:
IOException
-