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,
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 java.io.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 instancejava.io.IOException - If failed to create the clientprotected DefaultSftpClient createDefaultSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws java.io.IOException
java.io.IOExceptionpublic SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, int readBufferSize, int writeBufferSize) throws java.io.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 instancejava.io.IOException - If failed to create the instance