Package com.enterprisedt.net.ftp
Class FTPMessageCollector
java.lang.Object
com.enterprisedt.net.ftp.FTPMessageCollector
- All Implemented Interfaces:
FTPMessageListener
Listens for and is notified of FTP commands and replies.
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FTPMessageCollector
public FTPMessageCollector()
-
-
Method Details
-
logCommand
Log an FTP command being sent to the server- Specified by:
logCommandin interfaceFTPMessageListener- Parameters:
cmd- command string
-
logReply
Log an FTP reply being sent back to the client- Specified by:
logReplyin interfaceFTPMessageListener- Parameters:
reply- reply string
-
getLog
Get the log of messages- Returns:
- message log as a string
-
clearLog
public void clearLog()Clear the log of all messages
-