FileDocCategorySizeDatePackage
ProtocolCommandListener.javaAPI DocApache Commons NET 1.4.1 API2038Sat Dec 03 10:05:50 GMT 2005org.apache.commons.net

ProtocolCommandListener

public interface ProtocolCommandListener implements EventListener
There exists a large class of IETF protocols that work by sending an ASCII text command and arguments to a server, and then receiving an ASCII text reply. For debugging and other purposes, it is extremely useful to log or keep track of the contents of the protocol messages. The ProtocolCommandListener interface coupled with the {@link ProtocolCommandEvent} class facilitate this process.

To receive ProtocolCommandEvents, you merely implement the ProtocolCommandListener interface and register the class as a listener with a ProtocolCommandEvent source such as {@link org.apache.commons.net.ftp.FTPClient}.

see
ProtocolCommandEvent
see
ProtocolCommandSupport
author
Daniel F. Savarese

Fields Summary
Constructors Summary
Methods Summary
public voidprotocolCommandSent(ProtocolCommandEvent event)
This method is invoked by a ProtocolCommandEvent source after sending a protocol command to a server.

param
event The ProtocolCommandEvent fired.

public voidprotocolReplyReceived(ProtocolCommandEvent event)
This method is invoked by a ProtocolCommandEvent source after receiving a reply from a server.

param
event The ProtocolCommandEvent fired.