Author: sebb
Date: Mon Mar 28 23:46:38 2011
New Revision: 1086447
URL: http://svn.apache.org/viewvc?rev=1086447&view=rev
Log:
Forgot Javadoc for the new methods
Modified:
commons/proper/net/trunk/src/main/java/org/apache/commons/net/SocketClient.java
Modified:
commons/proper/net/trunk/src/main/java/org/apache/commons/net/SocketClient.java
URL:
http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/SocketClient.java?rev=1086447&r1=1086446&r2=1086447&view=diff
==============================================================================
---
commons/proper/net/trunk/src/main/java/org/apache/commons/net/SocketClient.java
(original)
+++
commons/proper/net/trunk/src/main/java/org/apache/commons/net/SocketClient.java
Mon Mar 28 23:46:38 2011
@@ -701,12 +701,24 @@ public abstract class SocketClient
_commandSupport_.removeProtocolCommandListener(listener);
}
+ /**
+ * If there are any listeners, send them the reply details.
+ *
+ * @param replyCode the code extracted from the reply
+ * @param reply the full reply text
+ */
protected void fireReplyReceived(int replyCode, String reply) {
if (_commandSupport_.getListenerCount() > 0) {
_commandSupport_.fireReplyReceived(replyCode, reply);
}
}
+ /**
+ * If there are any listeners, send them the command details.
+ *
+ * @param command the command name
+ * @param message the complete message, including command name
+ */
protected void fireCommandSent(String command, String message) {
if (_commandSupport_.getListenerCount() > 0) {
_commandSupport_.fireCommandSent(command, message);