Interface CloseableScpClient
- All Superinterfaces:
AutoCloseable, Channel, ClientSessionHolder, Closeable, ScpClient, SessionContextHolder, SessionHolder<ClientSession>
An
ScpClient wrapper that also closes the underlying session when closed- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested classes/interfaces inherited from interface ScpClient
ScpClient.Option -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CloseableScpClientsingleSessionInstance(ScpClient client) Methods inherited from interface ClientSessionHolder
getClientSessionMethods inherited from interface ScpClient
download, download, download, download, download, download, download, download, download, downloadBytes, getSession, upload, upload, upload, upload, upload, upload, upload, upload, upload, upload, uploadMethods inherited from interface SessionHolder
getSessionContext
-
Method Details
-
singleSessionInstance
- Parameters:
client- The (nevernull)ScpClientinstance- Returns:
- A
CloseableScpClientwrapper that also closes the underlyingClientSessionHolder.getClientSession()when closed
-