private List<ForwardingRule> getForwardingRules() { List<ForwardingRule> rules = new LinkedList<ForwardingRule>(); for (Rule r : router.getRuleManager().getRules()) { if (!(r instanceof ForwardingRule)) continue; rules.add((ForwardingRule) r); } return rules; }
private List<ProxyRule> getProxyRules() { List<ProxyRule> rules = new LinkedList<ProxyRule>(); for (Rule r : router.getRuleManager().getRules()) { if (!(r instanceof ProxyRule)) continue; rules.add((ProxyRule) r); } return rules; }