public class ShortCodeRoutingRuleManagement extends java.lang.Object implements ShortCodeRoutingRuleManagementMBean
| Modifier and Type | Field and Description |
|---|---|
protected javolution.util.FastList<ScRoutingRule> |
scRoutingRuleList |
| Modifier and Type | Method and Description |
|---|---|
ScRoutingRule |
createScRoutingRule(java.lang.String shortCode,
ScRoutingRuleType routingRuleType,
java.lang.String urlOrsipProxy,
boolean exactMatch,
int networkId) |
ScRoutingRule |
createScRoutingRule(java.lang.String shortCode,
java.lang.String url,
boolean exactMatch)
Deprecated.
|
ScRoutingRule |
deleteScRoutingRule(java.lang.String shortCode,
int networkId) |
static ShortCodeRoutingRuleManagement |
getInstance() |
protected static ShortCodeRoutingRuleManagement |
getInstance(java.lang.String name) |
java.lang.String |
getName() |
java.lang.String |
getPersistDir() |
ScRoutingRule |
getScRoutingRule(java.lang.String shortCode,
int networkId)
Finds the
ScRoutingRule that match's with passed shortCode and networkId |
java.util.List<ScRoutingRule> |
getScRoutingRuleList() |
void |
load()
Load and create LinkSets and Link from persisted file
|
ScRoutingRule |
modifyScRoutingRule(java.lang.String shortCode,
ScRoutingRuleType routingRuleType,
java.lang.String urlOrsipProxy,
boolean exactMatch,
int networkId) |
void |
removeAllResourses() |
void |
setPersistDir(java.lang.String persistDir) |
void |
start() |
void |
stop() |
void |
store()
Persist
|
protected javolution.util.FastList<ScRoutingRule> scRoutingRuleList
protected static ShortCodeRoutingRuleManagement getInstance(java.lang.String name)
public static ShortCodeRoutingRuleManagement getInstance()
public java.lang.String getName()
public java.lang.String getPersistDir()
public void setPersistDir(java.lang.String persistDir)
public java.util.List<ScRoutingRule> getScRoutingRuleList()
getScRoutingRuleList in interface ShortCodeRoutingRuleManagementMBeanpublic ScRoutingRule getScRoutingRule(java.lang.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(java.lang.String shortCode, ScRoutingRuleType routingRuleType, java.lang.String urlOrsipProxy, boolean exactMatch, int networkId) throws java.lang.Exception
createScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanjava.lang.Exceptionpublic ScRoutingRule modifyScRoutingRule(java.lang.String shortCode, ScRoutingRuleType routingRuleType, java.lang.String urlOrsipProxy, boolean exactMatch, int networkId) throws java.lang.Exception
modifyScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanjava.lang.Exception@Deprecated public ScRoutingRule createScRoutingRule(java.lang.String shortCode, java.lang.String url, boolean exactMatch) throws java.lang.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 instancejava.lang.Exceptionpublic ScRoutingRule deleteScRoutingRule(java.lang.String shortCode, int networkId) throws java.lang.Exception
deleteScRoutingRule in interface ShortCodeRoutingRuleManagementMBeanjava.lang.Exceptionpublic void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.Exceptionpublic void removeAllResourses()
throws java.lang.Exception
java.lang.Exceptionpublic void store()
public void load()
throws java.io.FileNotFoundException
java.lang.Exceptionjava.io.FileNotFoundExceptionCopyright © 2017. All Rights Reserved.