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.
| Modifier and Type | Field and Description |
|---|---|
| private final IOFunction |
| Access | Constructor and Description |
|---|---|
| public | SftpFileSystemAutomatic(SftpFileSystemProvider provider, String id, IOFunction<Boolean, ClientSession> sessionProvider, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public ClientSession | |
| protected ClientSession |
| sessionProvider | back to summary |
|---|---|
| private final IOFunction<Boolean, ClientSession> sessionProvider | |
| SftpFileSystemAutomatic | back to summary |
|---|---|
| public SftpFileSystemAutomatic(SftpFileSystemProvider provider, String id, IOFunction<Boolean, ClientSession> sessionProvider, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException | |
| getClientSession | back to summary |
|---|---|
| public ClientSession getClientSession() Overrides org. Implements org.
| |
| sessionForSftpClient | back to summary |
|---|---|
| protected ClientSession sessionForSftpClient() throws IOException Overrides org.
| |