public class SftpFileSystemAutomatic extends SftpFileSystem
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.SftpFileSystem.DefaultGroupPrincipal, SftpFileSystem.DefaultUserPrincipal, SftpFileSystem.DefaultUserPrincipalLookupService, SftpFileSystem.SftpClientHandle, SftpFileSystem.SftpClientPoolOWNED_SESSION, UNIVERSAL_SUPPORTED_VIEWSlog| Constructor and Description |
|---|
SftpFileSystemAutomatic(SftpFileSystemProvider provider,
String id,
org.apache.sshd.common.util.io.functors.IOFunction<Boolean,ClientSession> sessionProvider,
SftpClientFactory factory,
SftpVersionSelector selector,
SftpErrorDataHandler errorDataHandler) |
| Modifier and Type | Method and Description |
|---|---|
ClientSession |
getClientSession() |
protected ClientSession |
sessionForSftpClient() |
close, create, getClient, getDefaultDir, getFileStores, getId, getReadBufferSize, getSession, getSftpErrorDataHandler, getSftpVersionSelector, getUserPrincipalLookupService, getVersion, getWriteBufferSize, init, isOpen, provider, setClientSession, setReadBufferSize, setWriteBufferSize, supportedFileAttributeViews, toStringappendDedupSep, create, create, getPath, getPathMatcher, getRootDirectories, getSeparator, globToRegex, handleWindowsSeparator, hostFsHasWindowsSeparator, isReadOnly, newWatchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSessionContextpublic SftpFileSystemAutomatic(SftpFileSystemProvider provider, String id, org.apache.sshd.common.util.io.functors.IOFunction<Boolean,ClientSession> sessionProvider, SftpClientFactory factory, SftpVersionSelector selector, SftpErrorDataHandler errorDataHandler) throws IOException
IOExceptionpublic ClientSession getClientSession()
getClientSession in interface ClientSessionHoldergetClientSession in class SftpFileSystemprotected ClientSession sessionForSftpClient() throws IOException
sessionForSftpClient in class SftpFileSystemIOExceptionCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.