Asterisk-Java

org.asteriskjava.manager.event
Class VarSetEvent

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

public class VarSetEvent
extends ManagerEvent

A VarSetEvent is triggered when a channel or global variable is set in Asterisk.

Available since Asterisk 1.6

It is implemented in main/pbx.c

Since:
1.0.0
Version:
$Id: VarSetEvent.java 1109 2008-08-16 11:27:26Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VarSetEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getChannel()
          Returns the name of the channel or null for global variables.
 java.lang.String getUniqueId()
          Returns the unique id of the channel or null for global variables.
 java.lang.String getValue()
          Returns the new value of the variable.
 java.lang.String getVariable()
          Returns the name of the variable that has been set.
 void setChannel(java.lang.String channel)
           
 void setUniqueId(java.lang.String uniqueId)
           
 void setValue(java.lang.String value)
           
 void setVariable(java.lang.String variable)
           
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, 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

VarSetEvent

public VarSetEvent(java.lang.Object source)
Method Detail

getChannel

public java.lang.String getChannel()
Returns the name of the channel or null for global variables.

Returns:
the name of the channel or null for global variables.

setChannel

public void setChannel(java.lang.String channel)

getUniqueId

public java.lang.String getUniqueId()
Returns the unique id of the channel or null for global variables.

Returns:
the unique id of the channel or null for global variables.

setUniqueId

public void setUniqueId(java.lang.String uniqueId)

getVariable

public java.lang.String getVariable()
Returns the name of the variable that has been set.

Returns:
the name of the variable that has been set.

setVariable

public void setVariable(java.lang.String variable)

getValue

public java.lang.String getValue()
Returns the new value of the variable.

Returns:
the new value of the variable.

setValue

public void setValue(java.lang.String value)

Asterisk-Java

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