com.orderlysoftware.orderlycalls.asterisk.agi
Class AGISettings.BindSettings

java.lang.Object
  extended by com.orderlysoftware.orderlycalls.base.Settings
      extended by com.orderlysoftware.orderlycalls.asterisk.agi.AGISettings.BindSettings
Enclosing class:
AGISettings

public class AGISettings.BindSettings
extends Settings

This class encapsulates settings necessary to bind a single AGIServer to a single interface and port.

It also contains settings to allow the server to filter requests by origin.

Author:
Matt King, M.A. Oxon.

Constructor Summary
AGISettings.BindSettings()
           
 
Method Summary
 java.util.ArrayList getAcceptableHosts()
          Gets the list of acceptable orgination hosts.
 java.net.InetSocketAddress getAddress()
           
 java.lang.String getHost()
           
 int getPort()
           
 void setAddress(java.net.InetSocketAddress address)
          Sets the address to listen on.
 boolean setXMLSettings(org.w3c.dom.Element xmlSettings)
          Sets properties based on the XML tag passed.
 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.BindSettings

public AGISettings.BindSettings()
Method Detail

setXMLSettings

public boolean setXMLSettings(org.w3c.dom.Element xmlSettings)
Sets properties based on the XML tag passed.

Overrides:
setXMLSettings in class Settings
Returns:
true on success/validation, false otherwise.

getHost

public java.lang.String getHost()
Returns:
Returns the host to listen on.

getPort

public int getPort()
Returns:
Returns the port to listen on.

getAddress

public java.net.InetSocketAddress getAddress()
Returns:
the host and port as an InetSocketAddress

setAddress

public void setAddress(java.net.InetSocketAddress address)
Sets the address to listen on.


getAcceptableHosts

public java.util.ArrayList getAcceptableHosts()
Gets the list of acceptable orgination hosts.

Returns:
the list of acceptable hosts from which to accept connections, or null to indicate 'accept all'.

toString

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

Overrides:
toString in class Settings