Package org.apache.sshd.scp.client
Interface CloseableScpClient
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.nio.channels.Channel
,ClientSessionHolder
,java.io.Closeable
,ScpClient
,SessionContextHolder
,SessionHolder<ClientSession>
public interface CloseableScpClient extends ScpClient, java.nio.channels.Channel
AnScpClient
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 Methods Modifier and Type Method Description static 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 Detail
-
singleSessionInstance
static CloseableScpClient singleSessionInstance(ScpClient client)
- Parameters:
client
- The (nevernull
)ScpClient
instance- Returns:
- A
CloseableScpClient
wrapper that also closes the underlyingClientSessionHolder.getClientSession()
when closed
-
-