|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.util.AbstractFTPClass
Generic class that acts as a parent to FTP related tasks to push files out to a host.
Constructor Summary | |
AbstractFTPClass()
|
Method Summary | |
protected void |
closeFTP(org.apache.commons.net.ftp.FTPClient ftp)
|
protected void |
makeDir(org.apache.commons.net.ftp.FTPClient ftp,
java.lang.String dir,
boolean ignoreFailures)
|
protected void |
makeDirs(org.apache.commons.net.ftp.FTPClient ftp,
java.lang.String pathname,
java.util.Vector knownPaths)
Creates all parent directories specified in a complete relative pathname. |
protected void |
makeDirsForFile(org.apache.commons.net.ftp.FTPClient ftp,
java.lang.String filename,
java.util.Vector knownPaths)
|
protected org.apache.commons.net.ftp.FTPClient |
openFTP()
|
protected java.lang.String |
resolveFile(java.lang.String file)
|
protected void |
sendFile(org.apache.commons.net.ftp.FTPClient ftp,
java.io.File infile,
java.lang.String outfilename)
The parent directories need to exist before putting this file. |
protected void |
sendFileToFTPPath(java.lang.String text,
java.lang.String path)
Sends the specified text into the specified path on the FTP server |
protected void |
sendStream(org.apache.commons.net.ftp.FTPClient ftp,
java.io.InputStream instream,
java.lang.String outfilename)
The parent directories need to exist before putting this file. |
protected void |
setBinary(org.apache.commons.net.ftp.FTPClient ftp)
|
void |
setPassive(boolean p)
|
void |
setTargetDir(java.lang.String targetDir)
|
void |
setTargetHost(java.lang.String targetHost)
|
void |
setTargetPasswd(java.lang.String targetPasswd)
|
void |
setTargetPort(int targetPort)
|
void |
setTargetSeparator(java.lang.String targetSeparator)
|
void |
setTargetUser(java.lang.String targetUser)
|
void |
validate()
Called after the configuration is read to make sure that all the mandatory parameters were specified.. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractFTPClass()
Method Detail |
public void setTargetUser(java.lang.String targetUser)
public void setTargetHost(java.lang.String targetHost)
public void setTargetPort(int targetPort)
public void setTargetPasswd(java.lang.String targetPasswd)
public void setTargetDir(java.lang.String targetDir)
public void setTargetSeparator(java.lang.String targetSeparator)
public void setPassive(boolean p)
public void validate() throws CruiseControlException
CruiseControlException
- if there was a configuration error.protected org.apache.commons.net.ftp.FTPClient openFTP() throws CruiseControlException
CruiseControlException
protected void closeFTP(org.apache.commons.net.ftp.FTPClient ftp)
protected void setBinary(org.apache.commons.net.ftp.FTPClient ftp) throws CruiseControlException
CruiseControlException
protected void makeDir(org.apache.commons.net.ftp.FTPClient ftp, java.lang.String dir, boolean ignoreFailures) throws CruiseControlException
CruiseControlException
protected void sendFile(org.apache.commons.net.ftp.FTPClient ftp, java.io.File infile, java.lang.String outfilename) throws CruiseControlException
CruiseControlException
protected void sendStream(org.apache.commons.net.ftp.FTPClient ftp, java.io.InputStream instream, java.lang.String outfilename) throws CruiseControlException
CruiseControlException
protected java.lang.String resolveFile(java.lang.String file)
protected void makeDirsForFile(org.apache.commons.net.ftp.FTPClient ftp, java.lang.String filename, java.util.Vector knownPaths) throws CruiseControlException
CruiseControlException
protected void makeDirs(org.apache.commons.net.ftp.FTPClient ftp, java.lang.String pathname, java.util.Vector knownPaths) throws CruiseControlException
CruiseControlException
protected void sendFileToFTPPath(java.lang.String text, java.lang.String path) throws CruiseControlException
text
- path
-
CruiseControlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |