Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24984/src/java/net/sf/asterisk/manager/event
Modified Files:
HangupEvent.java
Log Message:
Added new attribute "Cause-txt" to HangupEvent
Added handling of special charaters in event attribute names
Index: HangupEvent.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event/HangupEvent.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -p -r1.2 -r1.3
--- HangupEvent.java 23 Feb 2005 22:50:58 -0000 1.2
+++ HangupEvent.java 27 Aug 2005 02:26:59 -0000 1.3
@@ -31,6 +31,7 @@ public class HangupEvent extends Channel
static final long serialVersionUID = 650153034857116588L;
private Integer cause;
+ private String causeTxt;
/**
* @param source
@@ -55,4 +56,26 @@ public class HangupEvent extends Channel
{
this.cause = cause;
}
+
+ /**
+ * Returns the textual representation of the hangup cause.
+ *
+ * @return the textual representation of the hangup cause.
+ * @since 0.2
+ */
+ public String getCauseTxt()
+ {
+ return causeTxt;
+ }
+
+ /**
+ * Sets the textual representation of the hangup cause.
+ *
+ * @param causeTxt the textual representation of the hangup cause.
+ * @since 0.2
+ */
+ public void setCauseTxt(String causeTxt)
+ {
+ this.causeTxt = causeTxt;
+ }
}
|