public class RuleManager extends Object
Constructor and Description |
---|
RuleManager() |
Modifier and Type | Method and Description |
---|---|
void |
addExchangesStoreListener(IExchangesStoreListener viewer) |
void |
addProxyIfNew(Rule rule) |
void |
addRuleChangeListener(IRuleChangeListener viewer) |
boolean |
exists(RuleKey key) |
String |
getDefaultHost() |
int |
getDefaultListenPort() |
int |
getDefaultMethod() |
String |
getDefaultPath() |
String |
getDefaultTargetHost() |
int |
getDefaultTargetPort() |
Rule |
getMatchingRule(RuleKey keyFromReq) |
int |
getNumberOfRules() |
Rule |
getRuleByName(String name) |
List<Rule> |
getRules() |
boolean |
isAnyRuleWithPort(int port) |
void |
removeAllRules() |
void |
removeExchangesStoreListener(IExchangesStoreListener viewer) |
void |
removeRule(Rule rule) |
void |
removeRuleChangeListener(IRuleChangeListener viewer) |
void |
ruleChanged(Rule rule) |
void |
ruleDown(Rule rule) |
void |
ruleUp(Rule rule) |
void |
setDefaultMethod(int defaultMethod) |
void |
setDefaultTargetHost(String defaultTargetHost) |
void |
setRouter(Router router) |
public int getDefaultListenPort()
public String getDefaultHost()
public String getDefaultPath()
public int getDefaultMethod()
public void setDefaultMethod(int defaultMethod)
public String getDefaultTargetHost()
public void setDefaultTargetHost(String defaultTargetHost)
public int getDefaultTargetPort()
public boolean isAnyRuleWithPort(int port)
public void addProxyIfNew(Rule rule) throws IOException
IOException
public boolean exists(RuleKey key)
public void ruleUp(Rule rule)
public void ruleDown(Rule rule)
public void ruleChanged(Rule rule)
public void addRuleChangeListener(IRuleChangeListener viewer)
public void removeRuleChangeListener(IRuleChangeListener viewer)
public void addExchangesStoreListener(IExchangesStoreListener viewer)
public void removeExchangesStoreListener(IExchangesStoreListener viewer)
public void removeRule(Rule rule)
public void removeAllRules()
public int getNumberOfRules()
public void setRouter(Router router)
Copyright © 2012. All Rights Reserved.