Package org.apache.sshd.scp.client
Interface CloseableScpClient
-
- All Superinterfaces:
AutoCloseable,Channel,ClientSessionHolder,Closeable,ScpClient,SessionContextHolder,SessionHolder<ClientSession>
public interface CloseableScpClient extends ScpClient, Channel
AnScpClientwrapper that also closes the underlying session when closed- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.scp.client.ScpClient
ScpClient.Option
-
-
Method Summary
Static Methods Modifier and Type Method Description static CloseableScpClientsingleSessionInstance(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 Detail
-
singleSessionInstance
static CloseableScpClient singleSessionInstance(ScpClient client)
- Parameters:
client- The (nevernull)ScpClientinstance- Returns:
- A
CloseableScpClientwrapper that also closes the underlyingClientSessionHolder.getClientSession()when closed
-
-