net.sf.asterisk.manager.action
Class EventsAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.EventsAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class EventsAction
extends AbstractManagerAction

With the EventsAction you can specify what kind of events should be sent to this manager connection.

Version:
$Id: EventsAction.java,v 1.4 2005/08/07 00:09:42 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
EventsAction()
          Creates a new empty EventsAction.
EventsAction(java.lang.String eventMask)
          Creates a new EventsAction that applies the given event mask to the current manager connection.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getEventMask()
          Returns the event mask.
 void setEventMask(java.lang.String eventMask)
          Sets the event mask.
Set to "on" if all events should be send, "off" if not events should be sent or a combination of "system", "call" and "log" (separated by ',') to specify what kind of events should be sent.
 
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventsAction

public EventsAction()
Creates a new empty EventsAction.


EventsAction

public EventsAction(java.lang.String eventMask)
Creates a new EventsAction that applies the given event mask to the current manager connection.

Parameters:
eventMask - the event mask. Set to "on" if all events should be send, "off" if not events should be sent or a combination of "system", "call" and "log" (separated by ',') to specify what kind of events should be sent.
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "Events".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getEventMask

public java.lang.String getEventMask()
Returns the event mask.


setEventMask

public void setEventMask(java.lang.String eventMask)
Sets the event mask.
Set to "on" if all events should be send, "off" if not events should be sent or a combination of "system", "call" and "log" (separated by ',') to specify what kind of events should be sent.



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