Asterisk-Java

org.asteriskjava.manager.event
Class ZapShowChannelsEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.ResponseEvent
              extended by org.asteriskjava.manager.event.ZapShowChannelsEvent
All Implemented Interfaces:
java.io.Serializable

public class ZapShowChannelsEvent
extends ResponseEvent

A ZapShowChannelsEvent is triggered in response to a ZapShowChannelsAction and shows the state of a zap channel.

Version:
$Id: ZapShowChannelsEvent.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
ZapShowChannelsAction, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ZapShowChannelsEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAlarm()
          Returns the alarm state of this zap channel.
 java.lang.Integer getChannel()
          Returns the number of this zap channel.
 java.lang.String getContext()
          Returns the context of this zap channel as defined in zapata.conf.
 java.lang.Boolean getDnd()
          Returns whether dnd (do not disturb) is enabled for this zap channel.
 java.lang.String getSignalling()
          Returns the signalling of this zap channel.
 void setAlarm(java.lang.String alarm)
          Sets the alarm state of this zap channel.
 void setChannel(java.lang.Integer channel)
          Sets the number of this zap channel.
 void setContext(java.lang.String context)
          Sets the context of this zap channel.
 void setDnd(java.lang.Boolean dnd)
          Sets whether dnd (do not disturb) is enabled for this zap channel.
 void setSignalling(java.lang.String signalling)
          Sets the signalling of this zap channel.
 
Methods inherited from class org.asteriskjava.manager.event.ResponseEvent
getActionId, getInternalActionId, setActionId, setInternalActionId
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, 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
 

Constructor Detail

ZapShowChannelsEvent

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

getChannel

public java.lang.Integer getChannel()
Returns the number of this zap channel.


setChannel

public void setChannel(java.lang.Integer channel)
Sets the number of this zap channel.


getSignalling

public java.lang.String getSignalling()
Returns the signalling of this zap channel.

Possible values are:


setSignalling

public void setSignalling(java.lang.String signalling)
Sets the signalling of this zap channel.


getContext

public java.lang.String getContext()
Returns the context of this zap channel as defined in zapata.conf.


setContext

public void setContext(java.lang.String context)
Sets the context of this zap channel.


getDnd

public java.lang.Boolean getDnd()
Returns whether dnd (do not disturb) is enabled for this zap channel.

Returns:
Boolean.TRUE if dnd is enabled, Boolean.FALSE if it is disabled, null if not set.
Since:
0.3

setDnd

public void setDnd(java.lang.Boolean dnd)
Sets whether dnd (do not disturb) is enabled for this zap channel.

Parameters:
dnd - Boolean.TRUE if dnd is enabled, Boolean.FALSE if it is disabled.
Since:
0.3

getAlarm

public java.lang.String getAlarm()
Returns the alarm state of this zap channel.

This may be one of


setAlarm

public void setAlarm(java.lang.String alarm)
Sets the alarm state of this zap channel.


Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.