net.sf.asterisk.manager.event
Class HangupEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.ChannelEvent
              extended by 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

Field Summary
 
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 net.sf.asterisk.manager.event.ChannelEvent
getCallerId, getCallerIdName, getChannel, getState, getUniqueId, setCallerId, setCallerIdName, setChannel, setState, setUniqueId
 
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent
getDateReceived, getPrivilege, setDateReceived, setPrivilege, 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
 

Constructor Detail

HangupEvent

public HangupEvent(java.lang.Object source)
Parameters:
source -
Method Detail

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.