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,
SftpErrorDataHandler errorDataHandler) |
SftpClient |
createSftpClient(ClientSession session,
SftpVersionSelector selector,
SftpErrorDataHandler errorDataHandler) |
SftpFileSystem |
createSftpFileSystem(ClientSession session,
SftpVersionSelector selector,
SftpErrorDataHandler errorDataHandler,
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, createSftpClient, createSftpClient, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, instancepublic static final DefaultSftpClientFactory INSTANCE
public SftpClient createSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) 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 versionerrorDataHandler - The SftpErrorDataHandler to handle incoming data through the error stream - if
null the data is silently ignoredSftpClient instanceIOException - If failed to create the clientprotected DefaultSftpClient createDefaultSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException
IOExceptionpublic SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, 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 versionerrorDataHandler - The SftpErrorDataHandler to handle incoming data through the error stream - if
null the data is silently ignoredreadBufferSize - Default I/O read buffer sizewriteBufferSize - Default I/O write buffer sizeSftpFileSystem instanceIOException - If failed to create the instanceCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.