edtFTPj

com.enterprisedt.net.ftp
Class FTPMessageCollector

java.lang.Object
  extended by 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: 1.2 $
Author:
Bruce Blackshaw

Constructor Summary
FTPMessageCollector()
           
 
Method Summary
 void clearLog()
          Clear the log of all messages
 String getLog()
          Get the log of messages
 void logCommand(String cmd)
          Log an FTP command being sent to the server
 void logReply(String reply)
          Log an FTP reply being sent back to the client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPMessageCollector

public FTPMessageCollector()
Method Detail

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


edtFTPj

Copyright © 2000-2007 Enterprise Distributed Technologies. All Rights Reserved.