public abstract static class FtpClientFactory.ConnectionFactory<C extends org.apache.commons.net.ftp.FTPClient,B extends FtpFileSystemConfigBuilder> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionFactory(B builder) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract C |
createClient(FileSystemOptions fileSystemOptions) |
C |
createConnection(String hostname,
int port,
char[] username,
char[] password,
String workingDirectory,
FileSystemOptions fileSystemOptions) |
protected abstract void |
setupOpenConnection(C client,
FileSystemOptions fileSystemOptions) |
protected B extends FtpFileSystemConfigBuilder builder
protected ConnectionFactory(B builder)
public C createConnection(String hostname, int port, char[] username, char[] password, String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemExceptionprotected abstract C createClient(FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemExceptionprotected abstract void setupOpenConnection(C client, FileSystemOptions fileSystemOptions) throws IOException
IOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.