net.sf.asterisk.manager.event
Class NewExtenEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.NewExtenEvent
All Implemented Interfaces:
java.io.Serializable

public class NewExtenEvent
extends ManagerEvent

A NewExtenEvent is triggered when a channel is connected to a new extension.
It is implemented in pbx.c

Version:
$Id: NewExtenEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NewExtenEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAppData()
          Returns the parameters passed to the application that is executed.
 java.lang.String getApplication()
          Returns the name of the application that is executed.
 java.lang.String getChannel()
          Returns the name of the channel.
 java.lang.String getContext()
          Returns the name of the context of the connected extension.
 java.lang.String getExtension()
          Returns the extension.
 java.lang.Integer getPriority()
          Returns the priority.
 java.lang.String getUniqueId()
          Returns the unique id of the channel.
 void setAppData(java.lang.String appData)
          Sets the parameters passed to the application that is executed.
 void setApplication(java.lang.String application)
          Sets the name of the application that is executed.
 void setChannel(java.lang.String channel)
          Sets the name of the channel.
 void setContext(java.lang.String context)
          Sets the name of the context of the connected extension.
 void setExtension(java.lang.String extension)
          Sets the extension.
 void setPriority(java.lang.Integer priority)
          Sets the priority.
 void setUniqueId(java.lang.String uniqueId)
          Sets the unique id of the channel.
 
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

NewExtenEvent

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

getUniqueId

public java.lang.String getUniqueId()
Returns the unique id of the channel.


setUniqueId

public void setUniqueId(java.lang.String uniqueId)
Sets the unique id of the channel.


getApplication

public java.lang.String getApplication()
Returns the name of the application that is executed.


setApplication

public void setApplication(java.lang.String application)
Sets the name of the application that is executed.


getAppData

public java.lang.String getAppData()
Returns the parameters passed to the application that is executed. The parameters are separated by a '|' character.


setAppData

public void setAppData(java.lang.String appData)
Sets the parameters passed to the application that is executed.


getChannel

public java.lang.String getChannel()
Returns the name of the channel.


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel.


getContext

public java.lang.String getContext()
Returns the name of the context of the connected extension.


setContext

public void setContext(java.lang.String context)
Sets the name of the context of the connected extension.


getExtension

public java.lang.String getExtension()
Returns the extension.


setExtension

public void setExtension(java.lang.String extension)
Sets the extension.


getPriority

public java.lang.Integer getPriority()
Returns the priority.


setPriority

public void setPriority(java.lang.Integer priority)
Sets the priority.



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