ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.oroinc.net.ProtocolCommandListener

public interface ProtocolCommandListener
extends 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 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 FTPClient .

Copyright © 1997 Original Reusable Objects, Inc. All rights reserved.

See Also:
ProtocolCommandEvent, ProtocolCommandSupport

Method Index

 o protocolCommandSent(ProtocolCommandEvent)
This method is invoked by a ProtocolCommandEvent source after sending a protocol command to a server.
 o protocolReplyReceived(ProtocolCommandEvent)
This method is invoked by a ProtocolCommandEvent source after receiving a reply from a server.

Methods

 o protocolCommandSent
 public abstract void protocolCommandSent(ProtocolCommandEvent event)
This method is invoked by a ProtocolCommandEvent source after sending a protocol command to a server.

Parameters:
event - The ProtocolCommandEvent fired.
 o protocolReplyReceived
 public abstract void protocolReplyReceived(ProtocolCommandEvent event)
This method is invoked by a ProtocolCommandEvent source after receiving a reply from a server.

Parameters:
event - The ProtocolCommandEvent fired.

ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index