public interface ScpClient extends SessionHolder<ClientSession>, ClientSessionHolder
| Modifier and Type | Interface and Description |
|---|---|
static class |
ScpClient.Option |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT |
static long |
DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT |
static String |
SCP_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT
Configurable value of the
FactoryManager
for controlling the wait timeout for waiting on a channel exit status'
for an SCP command in milliseconds. |
static String |
SCP_EXEC_CHANNEL_OPEN_TIMEOUT
Configurable value of the
FactoryManager
for controlling the wait timeout for opening a channel for an SCP command
in milliseconds. |
getSessiongetClientSessionstatic final String SCP_EXEC_CHANNEL_OPEN_TIMEOUT
FactoryManager
for controlling the wait timeout for opening a channel for an SCP command
in milliseconds. If not specified, then DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT
value is usedstatic final long DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT
static final String SCP_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT
FactoryManager
for controlling the wait timeout for waiting on a channel exit status'
for an SCP command in milliseconds. If not specified, then
DEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT
value is used. If non-positive, then no wait is performed and the command
is assumed to have completed successfully.static final long DEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT
default void download(String remote, String local, ScpClient.Option... options) throws IOException
IOExceptionvoid download(String remote, String local, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void download(String remote, Path local, ScpClient.Option... options) throws IOException
IOExceptionvoid download(String remote, Path local, Collection<ScpClient.Option> options) throws IOException
IOExceptionvoid download(String remote, OutputStream local) throws IOException
IOExceptiondefault byte[] downloadBytes(String remote) throws IOException
IOExceptiondefault void download(String[] remote, String local, ScpClient.Option... options) throws IOException
IOExceptiondefault void download(String[] remote, Path local, ScpClient.Option... options) throws IOException
IOExceptionvoid download(String[] remote, String local, Collection<ScpClient.Option> options) throws IOException
IOExceptionvoid download(String[] remote, Path local, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(String local, String remote, ScpClient.Option... options) throws IOException
IOExceptiondefault void upload(String local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(Path local, String remote, ScpClient.Option... options) throws IOException
IOExceptiondefault void upload(Path local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(String[] local, String remote, ScpClient.Option... options) throws IOException
IOExceptionvoid upload(String[] local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(Path[] local, String remote, ScpClient.Option... options) throws IOException
IOExceptionvoid upload(Path[] local, String remote, Collection<ScpClient.Option> options) throws IOException
IOExceptiondefault void upload(byte[] data,
String remote,
Collection<PosixFilePermission> perms,
ScpTimestamp time)
throws IOException
IOExceptiondefault void upload(byte[] data,
int offset,
int len,
String remote,
Collection<PosixFilePermission> perms,
ScpTimestamp time)
throws IOException
IOExceptionvoid upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestamp time) throws IOException
IOExceptionstatic String createSendCommand(String remote, Collection<ScpClient.Option> options)
static String createReceiveCommand(String remote, Collection<ScpClient.Option> options)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.