19 package org.turro.elephant.servlet.crawler;
21 import java.util.HashSet;
24 import org.turro.http.activity.ActivityAction;
25 import org.turro.json.IJSONizable;
33 private final Set<ActivityAction> whiteList =
new HashSet<>();
34 private final Set<ActivityAction> blackList =
new HashSet<>();
45 return blackList.stream().anyMatch(aa -> ip.equals(aa.getIp()));
49 return whiteList.stream().anyMatch(aa -> ip.equals(aa.getIp()));
62 public String
toJson(Map<String, Object> properties) {
63 return toJson(
this, properties);
static AllowedSet from(CrawlerLists crawlerLists)
AllowedSet getAllowedSet()
boolean isWhiteListed(String ip)
Set< ActivityAction > getBlackList()
String toJson(Map< String, Object > properties)
Set< ActivityAction > getWhiteList()
boolean isBlackListed(String ip)