public class DefaultSftpClientFactory extends AbstractLoggingBean implements SftpClientFactory
Modifier and Type | Field and Description |
---|---|
static DefaultSftpClientFactory |
INSTANCE |
log
Constructor and Description |
---|
DefaultSftpClientFactory() |
Modifier and Type | Method and Description |
---|---|
protected DefaultSftpClient |
createDefaultSftpClient(ClientSession session,
SftpVersionSelector selector) |
SftpClient |
createSftpClient(ClientSession session,
SftpVersionSelector selector) |
SftpFileSystem |
createSftpFileSystem(ClientSession session,
SftpVersionSelector selector,
int readBufferSize,
int writeBufferSize) |
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSftpClient, createSftpClient, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, instance
public static final DefaultSftpClientFactory INSTANCE
public SftpClient createSftpClient(ClientSession session, SftpVersionSelector selector) throws IOException
createSftpClient
in interface SftpClientFactory
session
- The ClientSession
to which the SFTP client should be attachedselector
- The SftpVersionSelector
to use in order to negotiate the SFTP versionSftpClient
instanceIOException
- If failed to create the clientprotected DefaultSftpClient createDefaultSftpClient(ClientSession session, SftpVersionSelector selector) throws IOException
IOException
public SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize) throws IOException
createSftpFileSystem
in interface SftpClientFactory
session
- The ClientSession
to which the SFTP client backing the file system should be attachedselector
- The SftpVersionSelector
to use in order to negotiate the SFTP versionreadBufferSize
- Default I/O read buffer sizewriteBufferSize
- Default I/O write buffer sizeSftpFileSystem
instanceIOException
- If failed to create the instanceCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.