com.orderlysoftware.orderlycalls.asterisk.agi
Class AGISettings

java.lang.Object
  extended by com.orderlysoftware.orderlycalls.base.Settings
      extended by com.orderlysoftware.orderlycalls.asterisk.agi.AGISettings

public class AGISettings
extends Settings

This class encapsulates settings necessary to run an AGIServer.

Author:
Matt King, M.A. Oxon.

Nested Class Summary
 class AGISettings.BindSettings
          This class encapsulates settings necessary to bind a single AGIServer to a single interface and port.
 
Constructor Summary
AGISettings()
           
 
Method Summary
 void addBinding(AGISettings.BindSettings bs)
          Adds a new host:port binding to this server.
 java.util.ArrayList getBindings()
           
 java.lang.Class getProcessorClass()
          Returns the class of AGIProcessor to be used
 void setBindings(java.util.ArrayList bindings)
           
 void setProcessorClass(java.lang.Class processorClass)
          Sets the class of AGIProcessor to be used.
 boolean setXMLSettings(org.w3c.dom.Element xmlSettings)
          Parses input XML to set all properties.
 java.lang.String toString()
          Convenience method.
 
Methods inherited from class com.orderlysoftware.orderlycalls.base.Settings
equals, getName, getXMLSettings, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AGISettings

public AGISettings()
Method Detail

addBinding

public void addBinding(AGISettings.BindSettings bs)
Adds a new host:port binding to this server.

Parameters:
bs - The binding to add.

setXMLSettings

public boolean setXMLSettings(org.w3c.dom.Element xmlSettings)
Parses input XML to set all properties.

Overrides:
setXMLSettings in class Settings
Returns:
true if the input was successfully parsed, false otherwise.

getBindings

public java.util.ArrayList getBindings()
Returns:
Returns the list of bindings.

setBindings

public void setBindings(java.util.ArrayList bindings)
Parameters:
bindSettings - The bindSettings to set.

getProcessorClass

public java.lang.Class getProcessorClass()
Returns the class of AGIProcessor to be used


setProcessorClass

public void setProcessorClass(java.lang.Class processorClass)
Sets the class of AGIProcessor to be used.


toString

public java.lang.String toString()
Convenience method.

Overrides:
toString in class Settings