org.echarts.servlet.sip.appRouter.DFCRouterImpl
Class RouterConfiguration

java.lang.Object
  extended by org.echarts.servlet.sip.appRouter.DFCRouterImpl.RouterConfiguration

public class RouterConfiguration
extends java.lang.Object

This class is a container class holding the overall DFC router configuration. There is only one of these objects per DFC application router instance. The router configuration consists of three parts:

In the current implementation, this configuration is derived solely from the parsing of an xml file that occurs when the DFC router is initialized. That is, there is no facility at present to change this configuration dynamically.

Author:
khp

Constructor Summary
RouterConfiguration(java.lang.String XmlFileName)
          Initialize the router configuration from a named xml file.
 
Method Summary
static SubscriptionRules getOriginatingRules()
          Get the originating region mapping rules
static Precedence getPrecedence()
          Get the precedence object from the router configuration
static SubscriptionRules getTerminatingRules()
          Get the terminating region mapping rules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouterConfiguration

public RouterConfiguration(java.lang.String XmlFileName)
Initialize the router configuration from a named xml file. To be a valid router configuration, the file must contain exactly one "sip-app-router" section.

Parameters:
XmlFileName - the file name of the xml file name containing the router configuration
Throws:
javax.xml.parsers.ParserConfigurationException - if an error occurs while parsing the xml file
Method Detail

getPrecedence

public static Precedence getPrecedence()
Get the precedence object from the router configuration

Returns:
precedence the Precedence object

getOriginatingRules

public static SubscriptionRules getOriginatingRules()
Get the originating region mapping rules

Returns:
SubscriptionRules object

getTerminatingRules

public static SubscriptionRules getTerminatingRules()
Get the terminating region mapping rules

Returns:
SubscriptionRules object