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 DefaultSftpClient
createDefaultSftpClient
(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, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
createSftpClient
in interfaceSftpClientFactory
- Parameters:
session
- TheClientSession
to which the SFTP client should be attachedselector
- TheSftpVersionSelector
to use in order to negotiate the SFTP version- Returns:
- The created
SftpClient
instance - 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:
createSftpFileSystem
in interfaceSftpClientFactory
- Parameters:
session
- TheClientSession
to which the SFTP client backing the file system should be attachedselector
- TheSftpVersionSelector
to use in order to negotiate the SFTP versionreadBufferSize
- Default I/O read buffer sizewriteBufferSize
- Default I/O write buffer size- Returns:
- The created
SftpFileSystem
instance - Throws:
IOException
- If failed to create the instance
-