Class FTPMessageCollector

java.lang.Object
com.enterprisedt.net.ftp.FTPMessageCollector
All Implemented Interfaces:
FTPMessageListener

public class FTPMessageCollector extends Object implements FTPMessageListener
Listens for and is notified of FTP commands and replies.
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • FTPMessageCollector

      public FTPMessageCollector()
  • Method Details

    • logCommand

      public void logCommand(String cmd)
      Log an FTP command being sent to the server
      Specified by:
      logCommand in interface FTPMessageListener
      Parameters:
      cmd - command string
    • logReply

      public void logReply(String reply)
      Log an FTP reply being sent back to the client
      Specified by:
      logReply in interface FTPMessageListener
      Parameters:
      reply - reply string
    • getLog

      public String getLog()
      Get the log of messages
      Returns:
      message log as a string
    • clearLog

      public void clearLog()
      Clear the log of all messages