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 CloseableScpClient
singleSessionInstance
(ScpClient client) Methods inherited from interface org.apache.sshd.client.session.ClientSessionHolder
getClientSession
Methods 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, upload
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Method Details
-
singleSessionInstance
- Parameters:
client
- The (nevernull
)ScpClient
instance- Returns:
- A
CloseableScpClient
wrapper that also closes the underlyingClientSessionHolder.getClientSession()
when closed
-