java.lang.Object | +--org.apache.commons.net.ProtocolCommandSupportAll Implemented Interfaces:
ProtocolCommandEvent
ProtocolCommandListener
ProtocolCommandSupport(Object source) Creates a ProtocolCommandSupport instant using the indicated source as the source of fired ProtocolCommandEvents. |
void | addProtocolCommandListener(ProtocolCommandListener listener) Adds a ProtocolCommandListener. |
void | fireCommandSent(String command, String message) Fires a ProtocolCommandEvent signalling the sending of a command to all registered listeners, invoking their protocolCommandSent() methods. |
void | fireReplyReceived(int replyCode, String message) Fires a ProtocolCommandEvent signalling the reception of a command reply to all registered listeners, invoking their protocolReplyReceived() methods. |
int | Returns the number of ProtocolCommandListeners currently registered. |
void | removeProtocolCommandListener(ProtocolCommandListener listener) Removes a ProtocolCommandListener. |
public ProtocolCommandSupport(Object source)
public void addProtocolCommandListener(ProtocolCommandListener listener)
public void fireCommandSent(String command, String message)
public void fireReplyReceived(int replyCode, String message)
public int getListenerCount()
public void removeProtocolCommandListener(ProtocolCommandListener listener)