Top Description Fields Constructors Methods
org.apache.sshd.sftp.client.fs

public Class SftpFileSystemAutomatic

extends SftpFileSystem
Class Inheritance
Imports
java.io.IOException, org.apache.sshd.client.session.ClientSession, org.apache.sshd.common.util.io.functors.IOFunction, org.apache.sshd.sftp.client.SftpClientFactory, .SftpErrorDataHandler, .SftpVersionSelector

An SftpFileSystem that uses a provider function for its ClientSession so that it can continue to function even if a session was closed. The provider is supposed to create a new session if the current one is not open.
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final IOFunction<Boolean, ClientSession>
Inherited from org.apache.sshd.sftp.client.fs.SftpFileSystem:
OWNED_SESSIONUNIVERSAL_SUPPORTED_VIEWS

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ClientSession
protected ClientSession
Inherited from org.apache.sshd.sftp.client.fs.SftpFileSystem:
closecreategetClientgetDefaultDirgetFileStoresgetIdgetReadBufferSizegetSessiongetSftpErrorDataHandlergetSftpVersionSelectorgetUserPrincipalLookupServicegetVersiongetWriteBufferSizeinitisOpenprovidersetClientSessionsetReadBufferSizesetWriteBufferSizesupportedFileAttributeViewstoString

Field Detail

sessionProviderback to summary
private final IOFunction<Boolean, ClientSession> sessionProvider

Constructor Detail

SftpFileSystemAutomaticback to summary
public SftpFileSystemAutomatic(SftpFileSystemProvider provider, String id, IOFunction<Boolean, ClientSession> sessionProvider, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException

Method Detail

getClientSessionback to summary
public ClientSession getClientSession()

Overrides org.apache.sshd.sftp.client.fs.SftpFileSystem.getClientSession.

Implements org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

Returns:ClientSession

Doc from org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

The underlying ClientSession used

Annotations
@Override
sessionForSftpClientback to summary
protected ClientSession sessionForSftpClient() throws IOException

Overrides org.apache.sshd.sftp.client.fs.SftpFileSystem.sessionForSftpClient.

Annotations
@Override