Package org.apache.sshd.sftp.client.impl
Class DefaultSftpClientFactory
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.sftp.client.impl.DefaultSftpClientFactory
- All Implemented Interfaces:
SftpClientFactory
TODO Add javadoc
-
Field Summary
FieldsFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultSftpClientcreateDefaultSftpClient(ClientSession session, SftpVersionSelector selector) createSftpClient(ClientSession session, SftpVersionSelector selector) createSftpFileSystem(ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize) Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.sftp.client.SftpClientFactory
createSftpClient, createSftpClient, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultSftpClientFactory
public DefaultSftpClientFactory()
-
-
Method Details
-
createSftpClient
public SftpClient createSftpClient(ClientSession session, SftpVersionSelector selector) throws IOException - Specified by:
createSftpClientin interfaceSftpClientFactory- Parameters:
session- TheClientSessionto which the SFTP client should be attachedselector- TheSftpVersionSelectorto use in order to negotiate the SFTP version- Returns:
- The created
SftpClientinstance - Throws:
IOException- If failed to create the client
-
createDefaultSftpClient
protected DefaultSftpClient createDefaultSftpClient(ClientSession session, SftpVersionSelector selector) throws IOException - Throws:
IOException
-
createSftpFileSystem
public SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize) throws IOException - Specified by:
createSftpFileSystemin interfaceSftpClientFactory- Parameters:
session- TheClientSessionto which the SFTP client backing the file system should be attachedselector- TheSftpVersionSelectorto use in order to negotiate the SFTP versionreadBufferSize- Default I/O read buffer sizewriteBufferSize- Default I/O write buffer size- Returns:
- The created
SftpFileSysteminstance - Throws:
IOException- If failed to create the instance
-