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 void |
configureClient(FileSystemOptions fileSystemOptions,
C client) |
protected abstract C |
createClient(FileSystemOptions fileSystemOptions) |
C |
createConnection(String hostname,
int port,
char[] username,
char[] password,
String workingDirectory,
FileSystemOptions fileSystemOptions) |
C |
createConnection(String hostname,
int port,
char[] username,
char[] password,
String workingDirectory,
FileSystemOptions fileSystemOptions,
String proxyServer,
String proxyPort,
String proxyUser,
String proxyPassword,
String timeout,
String retryCount) |
protected void |
preConfigureClient(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
FileSystemExceptionpublic C createConnection(String hostname, int port, char[] username, char[] password, String workingDirectory, FileSystemOptions fileSystemOptions, String proxyServer, String proxyPort, String proxyUser, String proxyPassword, String timeout, String retryCount) throws FileSystemException
FileSystemExceptionprotected void preConfigureClient(FileSystemOptions fileSystemOptions) throws Exception
Exceptionprotected abstract C createClient(FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemExceptionprotected abstract void setupOpenConnection(C client, FileSystemOptions fileSystemOptions) throws IOException
IOExceptionprotected void configureClient(FileSystemOptions fileSystemOptions, C client) throws Exception
ExceptionCopyright © 2002–2024 WSO2. All rights reserved.