public class DefaultScpClient extends AbstractScpClient
AbstractScpClient.ScpOperationExecutor<T>ScpClient.Option| Modifier and Type | Field and Description |
|---|---|
protected ScpTransferEventListener |
listener |
protected ScpFileOpener |
opener |
static String |
SCP_PORT_OPTION
Command line option used to indicate a non-default port
|
COMMAND_WAIT_EVENTSlogDEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT, DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT, SCP_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT, SCP_EXEC_CHANNEL_OPEN_TIMEOUT| Constructor and Description |
|---|
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() |
static void |
main(String[] args) |
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,
ScpTimestamp time) |
addTargetIsDirectory, download, download, download, download, getSession, handleCommandExitStatus, handleCommandExitStatus, openCommandChannel, upload, uploadgetSimplifiedLoggerpublic static final String SCP_PORT_OPTION
protected final ScpFileOpener opener
protected final ScpTransferEventListener listener
public DefaultScpClient(ClientSession clientSession, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)
public ClientSession getClientSession()
ClientSession usedpublic void download(String remote, OutputStream local) throws IOException
IOExceptionprotected void download(String remote, FileSystem fs, Path local, Collection<ScpClient.Option> options) throws IOException
download in class AbstractScpClientIOExceptionpublic void upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestamp time) throws IOException
IOExceptionprotected <T> void runUpload(String remote, Collection<ScpClient.Option> options, Collection<T> local, AbstractScpClient.ScpOperationExecutor<T> executor) throws IOException
runUpload in class AbstractScpClientIOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.