public class DefaultScpClient extends AbstractScpClient
AbstractScpClient.ScpOperationExecutor<T>
ScpClient.Option
Modifier and Type | Field and Description |
---|---|
protected ScpTransferEventListener |
listener |
protected ScpFileOpener |
opener |
log
Constructor and Description |
---|
DefaultScpClient(ClientSession clientSession) |
DefaultScpClient(ClientSession clientSession,
ScpFileOpener fileOpener,
ScpTransferEventListener eventListener) |
Modifier and Type | Method and Description |
---|---|
protected void |
download(String remote,
FileSystem fs,
Path local,
Collection<ScpClient.Option> options) |
void |
download(String remote,
OutputStream local) |
ClientSession |
getClientSession() |
protected <T> void |
runUpload(String remote,
Collection<ScpClient.Option> options,
Collection<T> local,
AbstractScpClient.ScpOperationExecutor<T> executor) |
void |
upload(InputStream local,
String remote,
long size,
Collection<PosixFilePermission> perms,
ScpTimestampCommandDetails time) |
addTargetIsDirectory, download, download, download, download, handleCommandExitStatus, handleCommandExitStatus, isOpen, openCommandChannel, upload, upload
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendCommandOption, createReceiveCommand, createSendCommand, download, download, download, download, downloadBytes, getSession, upload, upload, upload, upload, upload, upload, upload, upload
getSessionContext
protected final ScpFileOpener opener
protected final ScpTransferEventListener listener
public DefaultScpClient(ClientSession clientSession)
public DefaultScpClient(ClientSession clientSession, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)
public ClientSession getClientSession()
ClientSession
usedpublic void download(String remote, OutputStream local) throws IOException
IOException
protected void download(String remote, FileSystem fs, Path local, Collection<ScpClient.Option> options) throws IOException
download
in class AbstractScpClient
IOException
public void upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestampCommandDetails time) throws IOException
IOException
protected <T> void runUpload(String remote, Collection<ScpClient.Option> options, Collection<T> local, AbstractScpClient.ScpOperationExecutor<T> executor) throws IOException
runUpload
in class AbstractScpClient
IOException
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.