Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29560/src/java/net/sf/asterisk/manager/event
Modified Files:
ConnectEvent.java
Log Message:
Added unit tests for ManagerReader and ManagerWriter (and did some refactoring to make this work)
Index: ConnectEvent.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event/ConnectEvent.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -p -r1.2 -r1.3
--- ConnectEvent.java 23 Feb 2005 22:50:58 -0000 1.2
+++ ConnectEvent.java 2 Mar 2005 23:15:50 -0000 1.3
@@ -31,10 +31,35 @@ public class ConnectEvent extends Manage
private static final long serialVersionUID = 3257845467831284784L;
/**
+ * The version of the manager protocol.
+ */
+ private String protocolIdentifier;
+
+ /**
* @param source
*/
public ConnectEvent(Object source)
{
super(source);
}
+
+ /**
+ * Returns the version of the protocol.
+ *
+ * @return the version of the protocol.
+ */
+ public String getProtocolIdentifier()
+ {
+ return protocolIdentifier;
+ }
+
+ /**
+ * Sets the version of the protocol.
+ *
+ * @param protocolIdentifier the version of the protocol.
+ */
+ public void setProtocolIdentifier(String protocolIdentifier)
+ {
+ this.protocolIdentifier = protocolIdentifier;
+ }
}
|