public class FTPRemoteFileLister extends AbstractRemoteFileLister<FTPRemoteFile>
socksProxyHost
and socksProxyPort
(Jakarta's commons-net which is used for FTP
uses sockets). See
http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html for proxy details.
This class depends on Jakarta's commons-net library (which depends on jakarta-oro).
Constructor and Description |
---|
FTPRemoteFileLister() |
FTPRemoteFileLister(String inFilePath) |
FTPRemoteFileLister(String inFilePath,
List<RemoteFileFilter> inFilterList) |
Modifier and Type | Method and Description |
---|---|
void |
clearRemoteFileList() |
org.apache.commons.net.ftp.FTPClient |
getFTPClient() |
String |
getProtocol() |
String |
getProxyHost() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
String |
getProxyUser() |
protected List<FTPRemoteFile> |
getUnfilteredRemoteFileListImpl() |
void |
logout() |
void |
setFilePath(String inFilePath) |
FTPRemoteFileLister |
setProxyHost(String inValue) |
FTPRemoteFileLister |
setProxyPassword(String inValue) |
FTPRemoteFileLister |
setProxyPort(int inValue) |
FTPRemoteFileLister |
setProxyUser(String inValue) |
addFilter, getFilePath, getFilteredRemoteFileList, getFilteredRemoteFileList, getFilterList, getReturnOnlyMostRecentFile, getUnfilteredRemoteFileList, setCredentials, setFilterList, setReturnOnlyMostRecentFile
public FTPRemoteFileLister()
public FTPRemoteFileLister(String inFilePath)
public FTPRemoteFileLister(String inFilePath, List<RemoteFileFilter> inFilterList)
public String getProtocol()
getProtocol
in interface RemoteFileLister
getProtocol
in class AbstractRemoteFileLister<FTPRemoteFile>
public void setFilePath(String inFilePath)
setFilePath
in interface RemoteFileLister
setFilePath
in class AbstractRemoteFileLister<FTPRemoteFile>
public org.apache.commons.net.ftp.FTPClient getFTPClient()
public void clearRemoteFileList()
clearRemoteFileList
in class AbstractRemoteFileLister<FTPRemoteFile>
public void logout() throws IOException
IOException
public FTPRemoteFileLister setProxyHost(String inValue)
public String getProxyHost()
public FTPRemoteFileLister setProxyPort(int inValue)
public Integer getProxyPort()
public FTPRemoteFileLister setProxyUser(String inValue)
public String getProxyUser()
public FTPRemoteFileLister setProxyPassword(String inValue)
public String getProxyPassword()
protected List<FTPRemoteFile> getUnfilteredRemoteFileListImpl()
getUnfilteredRemoteFileListImpl
in class AbstractRemoteFileLister<FTPRemoteFile>