Asterisk-Java

org.asteriskjava.manager.event
Class ListDialplanEvent

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.ListDialplanEvent
All Implemented Interfaces:
java.io.Serializable

public class ListDialplanEvent
extends ResponseEvent

A ShowDialplanCompleteEvent is triggered for each priority in the dialplan in response to a ShowDialplanAction.

Available since Asterisk 1.6

It is implemented in main/pbx.c

Since:
1.0.0
Version:
$Id: ListDialplanEvent.java 1164 2008-09-18 02:40:44Z sprior $
Author:
srt
See Also:
ShowDialplanAction, ShowDialplanCompleteEvent, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ListDialplanEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAppData()
          Returns the parameters of the application configured to handle this priority.
 java.lang.String getApplication()
          Returns the application configured to handle this priority.
 java.lang.String getContext()
          Returns the context.
 java.lang.String getExtension()
          Returns the extension or extension pattern.
 java.lang.String getExtensionLabel()
          Returns the extension label.
 java.lang.Integer getPriority()
          Returns the priority.
 java.lang.String getRegistrar()
          Returns the registrar that registered this priority.
 boolean isHint()
          Checks whether this is a hint.
 void setAppData(java.lang.String appData)
           
 void setApplication(java.lang.String application)
           
 void setContext(java.lang.String context)
           
 void setExtension(java.lang.String extension)
           
 void setExtensionLabel(java.lang.String extensionLabel)
           
 void setPriority(java.lang.String priorityString)
           
 void setRegistrar(java.lang.String registrar)
           
 
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

ListDialplanEvent

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

getContext

public java.lang.String getContext()
Returns the context.

Returns:
the context.

setContext

public void setContext(java.lang.String context)

getExtension

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

Returns:
the extension or extension pattern.

setExtension

public void setExtension(java.lang.String extension)

getExtensionLabel

public java.lang.String getExtensionLabel()
Returns the extension label.

Returns:
the extension label or null if none.

setExtensionLabel

public void setExtensionLabel(java.lang.String extensionLabel)

getPriority

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

Returns:
the priority or null if this is a hint.

isHint

public boolean isHint()
Checks whether this is a hint.

Returns:
true if this is a hint, false otherwise.

setPriority

public void setPriority(java.lang.String priorityString)

getApplication

public java.lang.String getApplication()
Returns the application configured to handle this priority.

Returns:
the application configured to handle this priority.

setApplication

public void setApplication(java.lang.String application)

getAppData

public java.lang.String getAppData()
Returns the parameters of the application configured to handle this priority.

Returns:
the parameters of the application configured to handle this priority or null if none.

setAppData

public void setAppData(java.lang.String appData)

getRegistrar

public java.lang.String getRegistrar()
Returns the registrar that registered this priority.

Typical values are "features" for the parkedcalls context, "pbx_config" for priorities defined in extensions.conf or "app_dial" for the app_dial_gosub_virtual_context context.

Returns:
the registrar that registered this priority.

setRegistrar

public void setRegistrar(java.lang.String registrar)

Asterisk-Java

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