Package org.apache.sshd.scp.client
Interface CloseableScpClient
- All Superinterfaces:
AutoCloseable,Channel,ClientSessionHolder,Closeable,ScpClient,SessionContextHolder,SessionHolder<ClientSession>
An
ScpClient wrapper that also closes the underlying session when closed-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.scp.client.ScpClient
ScpClient.Option -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CloseableScpClientsingleSessionInstance(ScpClient client) Methods inherited from interface org.apache.sshd.client.session.ClientSessionHolder
getClientSessionMethods inherited from interface org.apache.sshd.scp.client.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 org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Method Details
-
singleSessionInstance
- Parameters:
client- The (nevernull)ScpClientinstance- Returns:
- A
CloseableScpClientwrapper that also closes the underlyingClientSessionHolder.getClientSession()when closed
-