public abstract class AbstractSCPClient extends AbstractFileTransferClient implements SshSCPClient
put(String, String, File, boolean).| Constructor and Description |
|---|
AbstractSCPClient() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doPut(java.lang.String remotePath,
java.lang.String mode,
java.io.File localfile,
boolean recursive)
Sub-classes should implement this to perform the actual upload of the
file(s).
|
protected void |
onClose() |
protected void |
onOpen() |
void |
put(java.lang.String remotePath,
java.lang.String mode,
java.io.File localfile,
boolean recursive)
Put a file or directory to a remote path.
|
addFileTransferListener, fireFileTransferFinished, fireFileTransferProgressed, fireFileTransferStarted, removeFileTransferListenercheckOpen, close, isOpen, openaddListener, fireClosed, fireClosing, fireOpened, getListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetaddFileTransferListener, removeFileTransferListeneraddListener, close, isOpen, open, removeListenerprotected void onOpen()
throws SshException
onOpen in class AbstractLifecycleComponentWithEventsSshExceptionprotected void onClose()
throws SshException
onClose in class AbstractLifecycleComponentWithEventsSshExceptionpublic final void put(java.lang.String remotePath,
java.lang.String mode,
java.io.File localfile,
boolean recursive)
throws SshException
SshSCPClientput in interface SshSCPClientremotePath - path to copy file to.mode - mode to create new files aslocalfile - source file (or directory)recursive - recursively copy this directory and all of it's children
to the remote pathSshExceptionprotected abstract void doPut(java.lang.String remotePath,
java.lang.String mode,
java.io.File localfile,
boolean recursive)
throws SshException
remotePath - remote path to upload files tomode - mode stringlocalfile - local file to copyrecursive - recursiveSshException - on any errorCopyright © 2018. All rights reserved.