public class DefaultSftpClientFactory extends org.apache.sshd.common.util.logging.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) |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSftpClient, createSftpClient, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, instancepublic static final DefaultSftpClientFactory INSTANCE
public SftpClient createSftpClient(ClientSession session, SftpVersionSelector selector) throws IOException
createSftpClient in interface SftpClientFactorysession - 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
IOExceptionpublic SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize) throws IOException
createSftpFileSystem in interface SftpClientFactorysession - 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 © 2018–2021 The Apache Software Foundation. All rights reserved.