Asterisk-Java

org.asteriskjava.manager.action
Class EventsAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.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 968 2008-02-03 07:48:33Z srt $
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.
 
Methods inherited from class org.asteriskjava.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.


Asterisk-Java

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