org.asteriskjava.manager.event
Class HangupEvent
java.lang.Object
java.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.AbstractChannelEvent
org.asteriskjava.manager.event.HangupEvent
- All Implemented Interfaces:
- java.io.Serializable
public class HangupEvent
- extends AbstractChannelEvent
A HangupEvent is triggered when a channel is hung up.
It is implemented in channel.c
- Version:
- $Id: HangupEvent.java 969 2008-02-03 14:24:22Z srt $
- Author:
- srt
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
HangupEvent(java.lang.Object source)
|
Method Summary |
java.lang.Integer |
getCause()
Returns the cause of the hangup. |
java.lang.String |
getCauseTxt()
Returns the textual representation of the hangup cause. |
void |
setCause(java.lang.Integer cause)
Sets the cause of the hangup. |
void |
setCauseTxt(java.lang.String causeTxt)
Sets the textual representation of the hangup cause. |
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HangupEvent
public HangupEvent(java.lang.Object source)
getCause
public java.lang.Integer getCause()
- Returns the cause of the hangup.
- Returns:
- the hangup cause.
- See Also:
HangupCause
setCause
public void setCause(java.lang.Integer cause)
- Sets the cause of the hangup.
- Parameters:
cause
- the hangup cause.
getCauseTxt
public java.lang.String getCauseTxt()
- Returns the textual representation of the hangup cause.
- Returns:
- the textual representation of the hangup cause.
- Since:
- 0.2
setCauseTxt
public void setCauseTxt(java.lang.String causeTxt)
- Sets the textual representation of the hangup cause.
- Parameters:
causeTxt
- the textual representation of the hangup cause.- Since:
- 0.2
Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.