{
continue;
}
if (line.startsWith("@@||"))
{
HostUrlWildcardRule rule = new HostUrlWildcardRule();
rule.init(line.substring(4));
w.add(rule);
}
else if (line.startsWith("||"))
{
HostUrlWildcardRule rule = new HostUrlWildcardRule();
rule.init(line.substring(2));
b.add(rule);
}
else if (line.startsWith("|http"))
{
UrlWildcardRule rule = new UrlWildcardRule();
rule.init(line.substring(1));
b.add(rule);
}
else if (line.startsWith("/") && line.endsWith("/"))
{
UrlRegexRule rule = new UrlRegexRule();
rule.init(line.substring(1, line.length() - 1));
b.add(rule);
}
else
{
HostUrlWildcardRule rule = new HostUrlWildcardRule();
rule.onlyHttp = true;
rule.init(line);
b.add(rule);
}
}
instance.blackList = b;
instance.whiteList = w;