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, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSftpClient, createSftpClient, createSftpClient, createSftpClient, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, instance
public static final DefaultSftpClientFactory INSTANCE
public SftpClient createSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws java.io.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 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.IOException
public SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, int readBufferSize, int writeBufferSize) throws java.io.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 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