com.notuvy.net
Class FtpAgent
java.lang.Object
com.notuvy.net.FtpAgent
- All Implemented Interfaces:
- Runnable
public class FtpAgent
- extends Object
- implements Runnable
A simple FTP client.
- Version:
- $Id: FtpAgent.java,v 1.4 2006/06/22 03:48:21 murali Exp $
- Author:
- murali
FtpAgent
public FtpAgent()
FtpAgent
public FtpAgent(String pHost,
String pUser,
String pDir)
initialize
public void initialize(String pHost,
String pUser,
String pDir)
getHost
public String getHost()
getUser
public String getUser()
getSuccess
public boolean getSuccess()
getDirs
protected LinkedList getDirs()
getClient
protected org.apache.commons.net.ftp.FTPClient getClient()
getExistingFiles
protected Set getExistingFiles()
getAction
protected com.notuvy.net.FtpAgent.Action getAction()
getCreatePath
public boolean getCreatePath()
getCount
public int getCount()
setSuccess
protected void setSuccess(boolean pSuccess)
setAction
protected void setAction(com.notuvy.net.FtpAgent.Action pAction)
setCreatePath
public void setCreatePath(boolean pCreatePath)
getPass
protected String getPass()
chdir
protected boolean chdir()
connect
protected boolean connect()
recordCurrentRemoteContents
protected void recordCurrentRemoteContents()
deleteUnreplacedRemoteFiles
protected void deleteUnreplacedRemoteFiles()
recordCurrentLocalContents
protected void recordCurrentLocalContents(File pLocalDir)
deleteUnreplacedLocalFiles
protected void deleteUnreplacedLocalFiles()
disconnect
protected void disconnect()
put
protected void put(Collection pFiles)
get
protected void get(Collection pFiles,
File pLocal)
put
protected void put(File pFile,
String pRemoteName)
get
protected void get(String pRemoteName,
File pLocalFile)
delete
protected void delete(String pRemoteName)
listLocalDirFiles
protected Collection listLocalDirFiles(File pDir)
runAction
protected void runAction(com.notuvy.net.FtpAgent.Action pAction)
toString
public String toString()
- Overrides:
toString
in class Object
isDefined
public boolean isDefined()
givePath
public String givePath()
putDir
public void putDir(File pDir)
getDir
public void getDir(File pLocalDir)
putFile
public void putFile(File pFile)
putFile
public void putFile(File pFile,
String pRemoteName)
getFile
public void getFile(String pRemoteName,
File pLocalFile)
deleteFile
public void deleteFile(String pRemoteName)
run
public void run()
- Specified by:
run
in interface Runnable
Copyright © 2013. All Rights Reserved.