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

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

public class SubscriptionRules
extends java.lang.Object

This class provides a mapping between AddressPattern and Subscription objects


Constructor Summary
SubscriptionRules()
          Constructor to build a new, empty SubscriptionRules object
 
Method Summary
 void addSubscriptionRules(org.w3c.dom.Node regionMappingNode)
          Given a DOM Node from the router configuration xml file, derive the AddressPattern objects and associated subscriptions.
 java.util.Hashtable getMapping()
          Return the mapping holding the subscription rules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionRules

public SubscriptionRules()
Constructor to build a new, empty SubscriptionRules object

Method Detail

addSubscriptionRules

public void addSubscriptionRules(org.w3c.dom.Node regionMappingNode)
Given a DOM Node from the router configuration xml file, derive the AddressPattern objects and associated subscriptions. If the address pattern is new, initialize the mapping with the subscription list. If the address pattern already exists in this SubscriptionRules object, add the subscription to the existing address pattern. Duplicate applications in the subscription to an address patterns are fine; such duplicates are removed when the route set is built by the router.

Throws:
java.util.regex.PatternSyntaxException - the address pattern found has invalid syntax

getMapping

public java.util.Hashtable getMapping()
Return the mapping holding the subscription rules

Returns:
Hashtable mapping