Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4403/src/java/net/sf/asterisk/manager/event
Modified Files:
RegistryEvent.java
Log Message:
Added cause attribute
Index: RegistryEvent.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event/RegistryEvent.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -p -r1.5 -r1.6
--- RegistryEvent.java 8 Aug 2005 04:23:43 -0000 1.5
+++ RegistryEvent.java 27 Aug 2005 03:48:26 -0000 1.6
@@ -35,6 +35,7 @@ public class RegistryEvent extends Manag
private String domain;
private String username;
private String status;
+ private String cause;
/**
* @param source
@@ -139,4 +140,27 @@ public class RegistryEvent extends Manag
{
this.status = status;
}
+
+ /**
+ * Returns the cause of a rejected registration.
+ *
+ * @return the cause of a rejected registration.
+ * @since 0.2
+ */
+ public String getCause()
+ {
+ return cause;
+ }
+
+ /**
+ * Sets the cause of a rejected registration.
+ *
+ * @param cause the cause of a rejected registration.
+ * @since 0.2
+ */
+ public void setCause(String cause)
+ {
+ this.cause = cause;
+ }
+
}
|