net.sf.asterisk.manager.event
Class HangupEvent
java.lang.Object
java.util.EventObject
net.sf.asterisk.manager.event.ManagerEvent
net.sf.asterisk.manager.event.ChannelEvent
net.sf.asterisk.manager.event.HangupEvent
- All Implemented Interfaces:
- java.io.Serializable
public class HangupEvent
- extends ChannelEvent
A HangupEvent is triggered when a channel is hung up.
It is implemented in channel.c
- Version:
- $Id: HangupEvent.java,v 1.3 2005/08/27 02:26:59 srt Exp $
- 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 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)
- Parameters:
source
-
getCause
public java.lang.Integer getCause()
- Returns the cause of the hangup.
setCause
public void setCause(java.lang.Integer cause)
- Sets the cause of the hangup.
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-2005 Stefan Reuter. All Rights Reserved.