Top Fields Constructors Methods
org.apache.sshd.scp.client

public Class DefaultScpClient

extends AbstractScpClient
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, java.nio.file.FileSystem, .Path, java.nio.file.attribute.PosixFilePermission, java.util.Collection, .Collections, .EnumSet, .Objects, org.apache.sshd.client.channel.ChannelExec, org.apache.sshd.client.session.ClientSession, org.apache.sshd.common.FactoryManager, org.apache.sshd.common.file.FileSystemFactory, org.apache.sshd.common.file.util.MockFileSystem, .MockPath, org.apache.sshd.common.util.ValidateUtils, org.apache.sshd.scp.common.ScpFileOpener, .ScpHelper, .ScpTransferEventListener, org.apache.sshd.scp.common.helpers.DefaultScpFileOpener, .ScpTimestampCommandDetails

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final ClientSession
protected final ScpTransferEventListener
protected final ScpFileOpener

Constructor Summary

AccessConstructor and Description
public
public
DefaultScpClient(ClientSession clientSession, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)

Method Summary

Modifier and TypeMethod and Description
public void
protected void
public ClientSession
protected <T> void
public void
Inherited from org.apache.sshd.scp.client.AbstractScpClient:
addTargetIsDirectorydownloaddownloaddownloaddownloadhandleCommandExitStatushandleCommandExitStatusisOpenopenCommandChanneluploadupload

Field Detail

clientSessionback to summary
private final ClientSession clientSession
listenerback to summary
protected final ScpTransferEventListener listener
openerback to summary
protected final ScpFileOpener opener

Constructor Detail

DefaultScpClientback to summary
public DefaultScpClient(ClientSession clientSession)
DefaultScpClientback to summary
public DefaultScpClient(ClientSession clientSession, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)

Method Detail

downloadback to summary
public void download(String remote, OutputStream local) throws IOException

Implements org.apache.sshd.scp.client.ScpClient.download.

Annotations
@Override
downloadback to summary
protected void download(String remote, FileSystem fs, Path local, Collection<ScpClient.Option> options) throws IOException

Implements abstract org.apache.sshd.scp.client.AbstractScpClient.download.

Annotations
@Override
getClientSessionback to summary
public ClientSession getClientSession()

Implements org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

Returns:ClientSession

Doc from org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

The underlying ClientSession used

Annotations
@Override
runUploadback to summary
protected <T> void runUpload(String remote, Collection<ScpClient.Option> options, Collection<T> local, AbstractScpClient.ScpOperationExecutor<T> executor) throws IOException

Implements abstract org.apache.sshd.scp.client.AbstractScpClient.runUpload.

Annotations
@Override
uploadback to summary
public void upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestampCommandDetails time) throws IOException

Implements org.apache.sshd.scp.client.ScpClient.upload.

Annotations
@Override