com.enterprisedt.net.ftp.script
Class CommandCollector

java.lang.Object
  extended by com.enterprisedt.net.ftp.script.CommandCollector
All Implemented Interfaces:
FTPMessageListener

public class CommandCollector
extends java.lang.Object
implements FTPMessageListener

Collects list of logging commands

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Constructor Summary
CommandCollector()
           
 
Method Summary
 void clearLogs()
          Clear the log of all messages
 java.lang.String[] getLogs()
          Get the log of messages
 void logCommand(java.lang.String cmd)
          Log an FTP command being sent to the server
 void logReply(java.lang.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

CommandCollector

public CommandCollector()
Method Detail

logCommand

public void logCommand(java.lang.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(java.lang.String reply)
Log an FTP reply being sent back to the client

Specified by:
logReply in interface FTPMessageListener
Parameters:
reply - reply string

getLogs

public java.lang.String[] getLogs()
Get the log of messages

Returns:
message log as a string

clearLogs

public void clearLogs()
Clear the log of all messages



Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.