Top Description Methods
org.apache.sshd.scp.client

public Interface CloseableScpClient

extends ScpClient, Channel
Imports
java.nio.channels.Channel, org.apache.sshd.common.util.closeable.NioChannelDelegateInvocationHandler

An ScpClient wrapper that also closes the underlying session when closed
Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public static CloseableScpClient

Returns:

A CloseableScpClient wrapper that also closes the underlying getClientSession() when closed
singleSessionInstance
(ScpClient
The (never null) ScpClient instance
client
)

Inherited from java.nio.channels.Channel:
closeisOpen
Inherited from org.apache.sshd.scp.client.ScpClient:
appendCommandOptioncreateReceiveCommandcreateSendCommanddownloaddownloaddownloaddownloaddownloaddownloaddownloaddownloaddownloaddownloadBytesgetSessionuploaduploaduploaduploaduploaduploaduploaduploaduploaduploadupload

Method Detail

singleSessionInstanceback to summary
public static CloseableScpClient singleSessionInstance(ScpClient client)
Parameters
client:ScpClient

The (never null) ScpClient instance

Returns:CloseableScpClient

A CloseableScpClient wrapper that also closes the underlying getClientSession() when closed