Package org.apache.sshd.sftp.client
Interface SftpClientFactory
- All Known Implementing Classes:
DefaultSftpClientFactory
public interface SftpClientFactory
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
-
Method Summary
Modifier and TypeMethodDescriptiondefault SftpClientcreateSftpClient(org.apache.sshd.client.session.ClientSession session) Create an SFTP client from this session.default SftpClientcreateSftpClient(org.apache.sshd.client.session.ClientSession session, int version) Creates an SFTP client using the specified versiondefault SftpClientcreateSftpClient(org.apache.sshd.client.session.ClientSession session, SftpErrorDataHandler errorDataHandler) Create an SFTP client from this session.default SftpClientcreateSftpClient(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector) createSftpClient(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) default SftpFileSystemcreateSftpFileSystem(org.apache.sshd.client.session.ClientSession session) default SftpFileSystemcreateSftpFileSystem(org.apache.sshd.client.session.ClientSession session, int version) default SftpFileSystemcreateSftpFileSystem(org.apache.sshd.client.session.ClientSession session, int readBufferSize, int writeBufferSize) default SftpFileSystemcreateSftpFileSystem(org.apache.sshd.client.session.ClientSession session, int version, int readBufferSize, int writeBufferSize) default SftpFileSystemcreateSftpFileSystem(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector) default SftpFileSystemcreateSftpFileSystem(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize) createSftpFileSystem(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, int readBufferSize, int writeBufferSize) static SftpClientFactoryinstance()
-
Method Details
-
instance
-
createSftpClient
default SftpClient createSftpClient(org.apache.sshd.client.session.ClientSession session) throws IOException Create an SFTP client from this session.- Parameters:
session- TheClientSessionto be used for creating the SFTP client- Returns:
- The created
SftpClient - Throws:
IOException- if failed to create the client
-
createSftpClient
default SftpClient createSftpClient(org.apache.sshd.client.session.ClientSession session, int version) throws IOException Creates an SFTP client using the specified version- Parameters:
session- TheClientSessionto be used for creating the SFTP clientversion- The version to use - Note: if the specified version is not supported by the server then an exception will occur- Returns:
- The created
SftpClient - Throws:
IOException- If failed to create the client or use the specified version
-
createSftpClient
default SftpClient createSftpClient(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector) throws IOException - 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
-
createSftpClient
default SftpClient createSftpClient(org.apache.sshd.client.session.ClientSession session, SftpErrorDataHandler errorDataHandler) throws IOException Create an SFTP client from this session.- Parameters:
session- TheClientSessionto be used for creating the SFTP clienterrorDataHandler- TheSftpErrorDataHandlerto handle incoming data through the error stream - ifnullthe data is silently ignored- Returns:
- The created
SftpClient - Throws:
IOException- if failed to create the client
-
createSftpClient
SftpClient createSftpClient(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException - Parameters:
session- TheClientSessionto which the SFTP client should be attachedselector- TheSftpVersionSelectorto use in order to negotiate the SFTP versionerrorDataHandler- TheSftpErrorDataHandlerto handle incoming data through the error stream - ifnullthe data is silently ignored- Returns:
- The created
SftpClientinstance - Throws:
IOException- If failed to create the client
-
createSftpFileSystem
default SftpFileSystem createSftpFileSystem(org.apache.sshd.client.session.ClientSession session) throws IOException - Throws:
IOException
-
createSftpFileSystem
default SftpFileSystem createSftpFileSystem(org.apache.sshd.client.session.ClientSession session, int version) throws IOException - Throws:
IOException
-
createSftpFileSystem
default SftpFileSystem createSftpFileSystem(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector) throws IOException - Throws:
IOException
-
createSftpFileSystem
default SftpFileSystem createSftpFileSystem(org.apache.sshd.client.session.ClientSession session, int version, int readBufferSize, int writeBufferSize) throws IOException - Throws:
IOException
-
createSftpFileSystem
default SftpFileSystem createSftpFileSystem(org.apache.sshd.client.session.ClientSession session, int readBufferSize, int writeBufferSize) throws IOException - Throws:
IOException
-
createSftpFileSystem
default SftpFileSystem createSftpFileSystem(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize) throws IOException - Throws:
IOException
-
createSftpFileSystem
SftpFileSystem createSftpFileSystem(org.apache.sshd.client.session.ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, int readBufferSize, int writeBufferSize) throws IOException - Parameters:
session- TheClientSessionto which the SFTP client backing the file system should be attachedselector- TheSftpVersionSelectorto use in order to negotiate the SFTP versionerrorDataHandler- TheSftpErrorDataHandlerto handle incoming data through the error stream - ifnullthe data is silently ignoredreadBufferSize- Default I/O read buffer sizewriteBufferSize- Default I/O write buffer size- Returns:
- The created
SftpFileSysteminstance - Throws:
IOException- If failed to create the instance
-