|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessage org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessageBySftp
public class ScpToMessageBySftp
Utility class to carry out an upload by sftp.
Constructor Summary | |
---|---|
ScpToMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.io.File aLocalFile,
java.lang.String aRemotePath)
Constructor for a local file to remote. |
|
ScpToMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.util.List aDirectoryList,
java.lang.String aRemotePath)
Constructor for a local directories to remote. |
|
ScpToMessageBySftp(com.jcraft.jsch.Session session,
java.io.File aLocalFile,
java.lang.String aRemotePath)
Constructor for ScpToMessage. |
|
ScpToMessageBySftp(com.jcraft.jsch.Session session,
java.util.List aDirectoryList,
java.lang.String aRemotePath)
Constructor for ScpToMessage. |
Method Summary | |
---|---|
void |
execute()
Carry out the transfer. |
java.io.File |
getLocalFile()
Get the local file. |
java.lang.String |
getRemotePath()
Get the remote path. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage |
---|
getProgressMonitor, getVerbose, log, logStats, openExecChannel, openSftpChannel, sendAck, setLogListener, trackProgress, waitForAck |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScpToMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.io.File aLocalFile, java.lang.String aRemotePath)
verbose
- if true do verbose loggingsession
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote pathpublic ScpToMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.util.List aDirectoryList, java.lang.String aRemotePath)
verbose
- if true do verbose loggingsession
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote pathpublic ScpToMessageBySftp(com.jcraft.jsch.Session session, java.io.File aLocalFile, java.lang.String aRemotePath)
session
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote pathpublic ScpToMessageBySftp(com.jcraft.jsch.Session session, java.util.List aDirectoryList, java.lang.String aRemotePath)
session
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote pathMethod Detail |
---|
public void execute() throws java.io.IOException, com.jcraft.jsch.JSchException
execute
in class ScpToMessage
java.io.IOException
- on i/o errors
com.jcraft.jsch.JSchException
- on errors detected by scppublic java.io.File getLocalFile()
getLocalFile
in class ScpToMessage
public java.lang.String getRemotePath()
getRemotePath
in class ScpToMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |