public class ShortCodeRoutingRuleManagement extends Object implements ShortCodeRoutingRuleManagementMBean
| Modifier and Type | Field and Description |
|---|---|
protected javolution.util.FastList<ScRoutingRule> |
scRoutingRuleList |
| Modifier and Type | Method and Description |
|---|---|
ScRoutingRule |
createScRoutingRule(String shortCode,
ScRoutingRuleType routingRuleType,
String urlOrsipProxy,
boolean exactMatch,
int networkId) |
ScRoutingRule |
createScRoutingRule(String shortCode,
String url,
boolean exactMatch)
Deprecated.
|
ScRoutingRule |
deleteScRoutingRule(String shortCode,
int networkId) |
static ShortCodeRoutingRuleManagement |
getInstance() |
protected static ShortCodeRoutingRuleManagement |
getInstance(String name) |
String |
getName() |
String |
getPersistDir() |
ScRoutingRule |
getScRoutingRule(String shortCode,
int networkId)
Finds the
ScRoutingRule that match's with passed shortCode and networkId |
List<ScRoutingRule> |
getScRoutingRuleList() |
void |
load()
Load and create LinkSets and Link from persisted file
|
ScRoutingRule |
modifyScRoutingRule(String shortCode,
ScRoutingRuleType routingRuleType,
String urlOrsipProxy,
boolean exactMatch,
int networkId) |
void |
removeAllResourses() |
void |
setPersistDir(String persistDir) |
void |
start() |
void |
stop() |
void |
store()
Persist
|
protected javolution.util.FastList<ScRoutingRule> scRoutingRuleList
protected static ShortCodeRoutingRuleManagement getInstance(String name)
public static ShortCodeRoutingRuleManagement getInstance()
public String getName()
public String getPersistDir()
public void setPersistDir(String persistDir)
public List<ScRoutingRule> getScRoutingRuleList()
getScRoutingRuleList in interface ShortCodeRoutingRuleManagementMBeanpublic ScRoutingRule getScRoutingRule(String shortCode, int networkId)
ShortCodeRoutingRuleManagementMBeanScRoutingRule that match's with passed shortCode and networkIdgetScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanshortCode - short code for which rule is to be found.networkId - networkId for which rule is to be found.public ScRoutingRule createScRoutingRule(String shortCode, ScRoutingRuleType routingRuleType, String urlOrsipProxy, boolean exactMatch, int networkId) throws Exception
createScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanExceptionpublic ScRoutingRule modifyScRoutingRule(String shortCode, ScRoutingRuleType routingRuleType, String urlOrsipProxy, boolean exactMatch, int networkId) throws Exception
modifyScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanException@Deprecated public ScRoutingRule createScRoutingRule(String shortCode, String url, boolean exactMatch) throws Exception
ShortCodeRoutingRuleManagementMBeancreateScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanshortCode - the ussd short code for this ruleurl - the HTTP URL where HTTP POST request should be forwarded if
rule match'sexactMatch - if received dial string should be exactly matched with
shortCode or should just begin with shortCodeScRoutingRule instanceExceptionpublic ScRoutingRule deleteScRoutingRule(String shortCode, int networkId) throws Exception
deleteScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanExceptionpublic void store()
public void load()
throws FileNotFoundException
ExceptionFileNotFoundExceptionCopyright © 2017. All Rights Reserved.