railo.commons.io.res.type.ftp
Class FTPResourceClient

java.lang.Object
  extended by org.apache.commons.net.SocketClient
      extended by org.apache.commons.net.ftp.FTP
          extended by org.apache.commons.net.ftp.FTPClient
              extended by railo.commons.io.res.type.ftp.FTPResourceClient
All Implemented Interfaces:
org.apache.commons.net.ftp.Configurable

public final class FTPResourceClient
extends org.apache.commons.net.ftp.FTPClient


Field Summary
 
Fields inherited from class org.apache.commons.net.ftp.FTPClient
ACTIVE_LOCAL_DATA_CONNECTION_MODE, ACTIVE_REMOTE_DATA_CONNECTION_MODE, PASSIVE_LOCAL_DATA_CONNECTION_MODE, PASSIVE_REMOTE_DATA_CONNECTION_MODE
 
Fields inherited from class org.apache.commons.net.ftp.FTP
ASCII_FILE_TYPE, BINARY_FILE_TYPE, BLOCK_TRANSFER_MODE, CARRIAGE_CONTROL_TEXT_FORMAT, COMPRESSED_TRANSFER_MODE, DEFAULT_CONTROL_ENCODING, DEFAULT_DATA_PORT, DEFAULT_PORT, EBCDIC_FILE_TYPE, FILE_STRUCTURE, LOCAL_FILE_TYPE, NON_PRINT_TEXT_FORMAT, PAGE_STRUCTURE, RECORD_STRUCTURE, STREAM_TRANSFER_MODE, TELNET_TEXT_FORMAT
 
Fields inherited from class org.apache.commons.net.SocketClient
NETASCII_EOL
 
Constructor Summary
FTPResourceClient(FTPConnectionData ftpConnectionData, int cacheTimeout)
           
 
Method Summary
 boolean changeWorkingDirectory(String pathname)
           
 boolean deleteFile(String pathname)
           
 boolean equals(Object obj)
           
 FTPConnectionData getFtpConnectionData()
           
 org.apache.commons.net.ftp.FTPFile getFTPFile(FTPResource res)
           
 long getLastAccess()
           
 Object getToken()
           
 String id()
           
 void registerFTPFile(FTPResource res, org.apache.commons.net.ftp.FTPFile file)
           
 void touch()
           
 void unregisterFTPFile(FTPResource res)
           
 
Methods inherited from class org.apache.commons.net.ftp.FTPClient
abort, allocate, allocate, appendFile, appendFileStream, changeToParentDirectory, completePendingCommand, configure, disconnect, enterLocalActiveMode, enterLocalPassiveMode, enterRemoteActiveMode, enterRemotePassiveMode, getBufferSize, getDataConnectionMode, getListHiddenFiles, getModificationTime, getPassiveHost, getPassivePort, getRestartOffset, getStatus, getStatus, getSystemName, initiateListParsing, initiateListParsing, initiateListParsing, isRemoteVerificationEnabled, listFiles, listFiles, listHelp, listHelp, listNames, listNames, login, login, logout, makeDirectory, printWorkingDirectory, remoteAppend, remoteRetrieve, remoteStore, remoteStoreUnique, remoteStoreUnique, removeDirectory, rename, retrieveFile, retrieveFileStream, sendNoOp, sendSiteCommand, setBufferSize, setDataTimeout, setFileStructure, setFileTransferMode, setFileType, setFileType, setListHiddenFiles, setParserFactory, setRemoteVerificationEnabled, setRestartOffset, storeFile, storeFileStream, storeUniqueFile, storeUniqueFile, storeUniqueFileStream, storeUniqueFileStream, structureMount
 
Methods inherited from class org.apache.commons.net.ftp.FTP
abor, acct, addProtocolCommandListener, allo, allo, appe, cdup, cwd, dele, getControlEncoding, getReply, getReplyCode, getReplyString, getReplyStrings, help, help, isStrictMultilineParsing, list, list, mdtm, mkd, mode, nlst, nlst, noop, pass, pasv, port, pwd, quit, rein, removeProtocolCommandListener, rest, retr, rmd, rnfr, rnto, sendCommand, sendCommand, sendCommand, sendCommand, setControlEncoding, setStrictMultilineParsing, site, smnt, stat, stat, stor, stou, stou, stru, syst, type, type, user
 
Methods inherited from class org.apache.commons.net.SocketClient
connect, connect, connect, connect, connect, connect, getConnectTimeout, getDefaultPort, getDefaultTimeout, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSoLinger, getSoTimeout, getTcpNoDelay, isConnected, setConnectTimeout, setDefaultPort, setDefaultTimeout, setReceiveBufferSize, setSendBufferSize, setServerSocketFactory, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemote
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPResourceClient

public FTPResourceClient(FTPConnectionData ftpConnectionData,
                         int cacheTimeout)
Method Detail

getFtpConnectionData

public FTPConnectionData getFtpConnectionData()
Returns:
the ftpConnectionData

touch

public void touch()

getLastAccess

public long getLastAccess()
Returns:
the lastAccess

getToken

public Object getToken()

changeWorkingDirectory

public boolean changeWorkingDirectory(String pathname)
                               throws IOException
Overrides:
changeWorkingDirectory in class org.apache.commons.net.ftp.FTPClient
Throws:
IOException
See Also:
FTPClient.changeWorkingDirectory(java.lang.String)

id

public String id()
See Also:
Object.equals(java.lang.Object)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getFTPFile

public org.apache.commons.net.ftp.FTPFile getFTPFile(FTPResource res)
                                              throws IOException
Throws:
IOException

registerFTPFile

public void registerFTPFile(FTPResource res,
                            org.apache.commons.net.ftp.FTPFile file)

unregisterFTPFile

public void unregisterFTPFile(FTPResource res)

deleteFile

public boolean deleteFile(String pathname)
                   throws IOException
Overrides:
deleteFile in class org.apache.commons.net.ftp.FTPClient
Throws:
IOException
See Also:
FTPClient.deleteFile(java.lang.String)


Copyright © 2012 Railo