Interface CloseableScpClient

All Superinterfaces:
AutoCloseable, Channel, org.apache.sshd.client.session.ClientSessionHolder, Closeable, ScpClient, org.apache.sshd.common.session.SessionContextHolder, org.apache.sshd.common.session.SessionHolder<org.apache.sshd.client.session.ClientSession>

public interface CloseableScpClient extends ScpClient, Channel
An ScpClient wrapper that also closes the underlying session when closed
Author:
Apache MINA SSHD Project
  • Method Details

    • singleSessionInstance

      static CloseableScpClient singleSessionInstance(ScpClient client)
      Parameters:
      client - The (never null) ScpClient instance
      Returns:
      A CloseableScpClient wrapper that also closes the underlying ClientSessionHolder.getClientSession() when closed