|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.zanox.hudson.plugins.FTPSite
public class FTPSite
This class
HeadURL: $HeadURL: http://z-bld-02:8080/zxdev/zxant_test_environment/trunk/formatting/codeTemplates.xml $
Date: $Date: 2008-04-22 11:53:34 +0200 (Di, 22 Apr 2008) $
Revision: $Revision: 2451 $
| Constructor Summary | |
|---|---|
FTPSite()
Instantiates a new FTP site. |
|
FTPSite(java.lang.String profileName,
java.lang.String hostname,
int port,
int timeOut,
java.lang.String username,
java.lang.String password,
java.lang.String ftpDir)
Instantiates a new FTP site. |
|
FTPSite(java.lang.String hostname,
java.lang.String port,
java.lang.String timeOut,
java.lang.String username,
java.lang.String password)
Instantiates a new FTP site. |
|
| Method Summary | |
|---|---|
void |
changedToProjectRootDir(java.lang.String projectRootDir,
java.io.PrintStream logger)
Changed to project root dir. |
void |
closeSession()
This method disconnect the current ftp connection. |
void |
createSession()
This method open an ftp connection and login with the specified user name and password. |
java.lang.String |
getDisplayName()
Gets the display name. |
java.lang.String |
getFtpDir()
Gets the ftp dir. |
java.lang.String |
getHostname()
Gets the hostname. |
int |
getIntegerPort()
Gets the integer port. |
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getPassword()
Gets the password. |
java.lang.String |
getPort()
Gets the port. |
java.lang.String |
getProfileName()
Gets the profile name. |
int |
getTimeOut()
Gets the time out. |
java.lang.String |
getUsername()
Gets the username. |
void |
mkdirs(java.lang.String filePath,
java.io.PrintStream logger)
Mkdirs. |
void |
setFtpDir(java.lang.String rootRepositoryPath)
Sets the ftp dir. |
void |
setHostname(java.lang.String hostname)
Sets the hostname. |
void |
setPassword(java.lang.String password)
Sets the password. |
void |
setPort(java.lang.String port)
Sets the port. |
void |
setProfileName(java.lang.String profileName)
Sets the profile name. |
void |
setTimeOut(int timeOut)
Sets the time out. |
void |
setUsername(java.lang.String username)
Sets the username. |
void |
upload(hudson.FilePath filePath,
java.util.Map<java.lang.String,java.lang.String> envVars,
java.io.PrintStream logger)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FTPSite()
public FTPSite(java.lang.String profileName,
java.lang.String hostname,
int port,
int timeOut,
java.lang.String username,
java.lang.String password,
java.lang.String ftpDir)
profileName - the profile namehostname - the hostnameport - the porttimeOut - the time outusername - the usernamepassword - the passwordftpDir - the ftp dir
public FTPSite(java.lang.String hostname,
java.lang.String port,
java.lang.String timeOut,
java.lang.String username,
java.lang.String password)
hostname - the hostnameport - the porttimeOut - the time outusername - the usernamepassword - the password| Method Detail |
|---|
public int getTimeOut()
public void setTimeOut(int timeOut)
timeOut - the new time outpublic java.lang.String getDisplayName()
public java.lang.String getProfileName()
public void setProfileName(java.lang.String profileName)
profileName - the new profile namepublic java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
hostname - the new hostnamepublic java.lang.String getPort()
public void setPort(java.lang.String port)
port - the new portpublic int getIntegerPort()
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username - the new usernamepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the new passwordpublic java.lang.String getFtpDir()
public void setFtpDir(java.lang.String rootRepositoryPath)
rootRepositoryPath - the new ftp dirpublic java.lang.String getName()
public void createSession()
throws java.io.IOException
java.io.IOException - Signals that an I/O exception has occurred.public void closeSession()
public void changedToProjectRootDir(java.lang.String projectRootDir,
java.io.PrintStream logger)
throws java.io.IOException
projectRootDir - the project root dirlogger - the logger
java.io.IOException - Signals that an I/O exception has occurred.
public void upload(hudson.FilePath filePath,
java.util.Map<java.lang.String,java.lang.String> envVars,
java.io.PrintStream logger)
throws java.io.IOException,
java.lang.InterruptedException,
com.jcraft.jsch.SftpException
java.io.IOException
java.lang.InterruptedException
com.jcraft.jsch.SftpException
public void mkdirs(java.lang.String filePath,
java.io.PrintStream logger)
throws com.jcraft.jsch.SftpException,
java.io.IOException
filePath - the file pathlogger - the logger
com.jcraft.jsch.SftpException - the sftp exception
java.io.IOException - Signals that an I/O exception has occurred.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||