public abstract static class FtpClientFactory.ConnectionFactory<C extends org.apache.commons.net.ftp.FTPClient,B extends FtpFileSystemConfigBuilder>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static char[] |
ANON_CHAR_ARRAY |
private static int |
BUFSZ |
protected B |
builder |
private org.apache.commons.logging.Log |
log |
Modifier | Constructor and Description |
---|---|
protected |
ConnectionFactory(B builder) |
Modifier and Type | Method and Description |
---|---|
private void |
configureClient(FileSystemOptions fileSystemOptions,
C client) |
protected abstract C |
createClient(FileSystemOptions fileSystemOptions) |
C |
createConnection(java.lang.String hostname,
int port,
char[] username,
char[] password,
java.lang.String workingDirectory,
FileSystemOptions fileSystemOptions) |
protected abstract void |
setupOpenConnection(C client,
FileSystemOptions fileSystemOptions) |
private static final char[] ANON_CHAR_ARRAY
private static final int BUFSZ
private final org.apache.commons.logging.Log log
protected B extends FtpFileSystemConfigBuilder builder
protected ConnectionFactory(B builder)
public C createConnection(java.lang.String hostname, int port, char[] username, char[] password, java.lang.String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemException
protected abstract C createClient(FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemException
protected abstract void setupOpenConnection(C client, FileSystemOptions fileSystemOptions) throws java.io.IOException
java.io.IOException
private void configureClient(FileSystemOptions fileSystemOptions, C client)