Class RuleManager

java.lang.Object
com.predic8.membrane.core.RuleManager

public class RuleManager extends Object
  • Constructor Details

    • RuleManager

      public RuleManager()
  • Method Details

    • getDefaultListenPort

      public int getDefaultListenPort()
    • getDefaultHost

      public String getDefaultHost()
    • getDefaultPath

      public String getDefaultPath()
    • getDefaultMethod

      public int getDefaultMethod()
    • setDefaultMethod

      public void setDefaultMethod(int defaultMethod)
    • getDefaultTargetHost

      public String getDefaultTargetHost()
    • setDefaultTargetHost

      public void setDefaultTargetHost(String defaultTargetHost)
    • getDefaultTargetPort

      public int getDefaultTargetPort()
    • isAnyRuleWithPort

      public boolean isAnyRuleWithPort(int port)
    • addProxyAndOpenPortIfNew

      public void addProxyAndOpenPortIfNew(Rule rule) throws IOException
      Throws:
      IOException
    • addProxyAndOpenPortIfNew

      public void addProxyAndOpenPortIfNew(Rule rule, RuleManager.RuleDefinitionSource source) throws IOException
      Throws:
      IOException
    • addProxy

      public void addProxy(Rule rule, RuleManager.RuleDefinitionSource source)
    • openPorts

      public void openPorts() throws IOException
      Throws:
      IOException
    • exists

      public boolean exists(RuleKey key)
    • getRules

      public List<Rule> getRules()
    • ruleUp

      public void ruleUp(Rule rule)
    • ruleDown

      public void ruleDown(Rule rule)
    • ruleChanged

      public void ruleChanged(Rule rule)
    • getMatchingRule

      public Rule getMatchingRule(Exchange exc)
    • addRuleChangeListener

      public void addRuleChangeListener(IRuleChangeListener viewer)
    • removeRuleChangeListener

      public void removeRuleChangeListener(IRuleChangeListener viewer)
    • addExchangesStoreListener

      public void addExchangesStoreListener(IExchangesStoreListener viewer)
    • removeExchangesStoreListener

      public void removeExchangesStoreListener(IExchangesStoreListener viewer)
    • removeRule

      public void removeRule(Rule rule)
    • replaceRule

      public void replaceRule(Rule rule, Rule newRule)
    • removeRulesFromSource

      public void removeRulesFromSource(RuleManager.RuleDefinitionSource source)
    • removeAllRules

      public void removeAllRules()
    • getNumberOfRules

      public int getNumberOfRules()
    • setRouter

      public void setRouter(Router router)
    • getRuleByName

      public Rule getRuleByName(String name)
    • getRulesBySource

      public List<Rule> getRulesBySource(RuleManager.RuleDefinitionSource source)