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 AbstractLoggingBean implements SftpClientFactory
TODO Add javadoc
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultSftpClientFactory
INSTANCE
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description DefaultSftpClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultSftpClient
createDefaultSftpClient(ClientSession session, SftpVersionSelector selector)
SftpClient
createSftpClient(ClientSession session, SftpVersionSelector selector)
SftpFileSystem
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 Detail
-
INSTANCE
public static final DefaultSftpClientFactory INSTANCE
-
-
Method Detail
-
createSftpClient
public SftpClient createSftpClient(ClientSession session, SftpVersionSelector selector) throws java.io.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:
java.io.IOException
- If failed to create the client
-
createDefaultSftpClient
protected DefaultSftpClient createDefaultSftpClient(ClientSession session, SftpVersionSelector selector) throws java.io.IOException
- Throws:
java.io.IOException
-
createSftpFileSystem
public SftpFileSystem createSftpFileSystem(ClientSession session, SftpVersionSelector selector, int readBufferSize, int writeBufferSize) throws java.io.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:
java.io.IOException
- If failed to create the instance
-
-