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
public class DefaultSftpClientFactory extends org.apache.sshd.common.util.logging.AbstractLoggingBean implements SftpClientFactory
TODO Add javadoc- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultSftpClientFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description DefaultSftpClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultSftpClientcreateDefaultSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler)SftpClientcreateSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler)SftpFileSystemcreateSftpFileSystem(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, 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, createSftpClient, createSftpClient, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem, createSftpFileSystem
-
-
-
-
Field Detail
-
INSTANCE
public static final DefaultSftpClientFactory INSTANCE
-
-
Method Detail
-
createSftpClient
public SftpClient createSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException
- Specified by:
createSftpClientin interfaceSftpClientFactory- 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
-
createDefaultSftpClient
protected DefaultSftpClient createDefaultSftpClient(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException
- Throws:
IOException
-
createSftpFileSystem
public SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler, 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 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
-
-