Package com.predic8.membrane.core
Class RuleManager
java.lang.Object
com.predic8.membrane.core.RuleManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddProxy(Rule rule, RuleManager.RuleDefinitionSource source) voidaddProxyAndOpenPortIfNew(Rule rule) voidaddProxyAndOpenPortIfNew(Rule rule, RuleManager.RuleDefinitionSource source) voidbooleanintintintgetMatchingRule(Exchange exc) intgetRuleByName(String name) getRules()booleanisAnyRuleWithPort(int port) voidvoidvoidvoidremoveRule(Rule rule) voidvoidvoidreplaceRule(Rule rule, Rule newRule) voidruleChanged(Rule rule) voidvoidvoidsetDefaultMethod(int defaultMethod) voidsetDefaultTargetHost(String defaultTargetHost) void
-
Constructor Details
-
RuleManager
public RuleManager()
-
-
Method Details
-
getDefaultListenPort
public int getDefaultListenPort() -
getDefaultHost
-
getDefaultPath
-
getDefaultMethod
public int getDefaultMethod() -
setDefaultMethod
public void setDefaultMethod(int defaultMethod) -
getDefaultTargetHost
-
setDefaultTargetHost
-
getDefaultTargetPort
public int getDefaultTargetPort() -
isAnyRuleWithPort
public boolean isAnyRuleWithPort(int port) -
addProxyAndOpenPortIfNew
- Throws:
IOException
-
addProxyAndOpenPortIfNew
public void addProxyAndOpenPortIfNew(Rule rule, RuleManager.RuleDefinitionSource source) throws IOException - Throws:
IOException
-
addProxy
-
openPorts
- Throws:
IOException
-
exists
-
getRules
-
ruleUp
-
ruleDown
-
ruleChanged
-
getMatchingRule
-
addRuleChangeListener
-
removeRuleChangeListener
-
addExchangesStoreListener
-
removeExchangesStoreListener
-
removeRule
-
replaceRule
-
removeRulesFromSource
-
removeAllRules
public void removeAllRules() -
getNumberOfRules
public int getNumberOfRules() -
setRouter
-
getRuleByName
-
getRulesBySource
-