BrightSide Workbench Full Report + Source Code
All Classes Namespaces Files Functions Variables Pages
org.turro.elephant.servlet.crawler.AllowedSet Class Reference

Public Member Functions

boolean isBlackListed (String ip)
 
boolean isWhiteListed (String ip)
 

Static Public Member Functions

static AllowedSet from (CrawlerLists crawlerLists)
 

Detailed Description

Author
Lluis Turró Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file AllowedSet.java.

Member Function Documentation

◆ from()

static AllowedSet org.turro.elephant.servlet.crawler.AllowedSet.from ( CrawlerLists  crawlerLists)
static

Definition at line 55 of file AllowedSet.java.

55  {
56  AllowedSet set = new AllowedSet();
57  crawlerLists.getBlackList().forEach(action -> set.addBlackListed(action.getIp()));
58  crawlerLists.getWhiteList().forEach(action -> set.addWhiteListed(action.getIp()));
59  return set;
60  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBlackListed()

boolean org.turro.elephant.servlet.crawler.AllowedSet.isBlackListed ( String  ip)

Definition at line 30 of file AllowedSet.java.

30  {
31  return ip != null && blackList.contains(ip);
32  }
Here is the caller graph for this function:

◆ isWhiteListed()

boolean org.turro.elephant.servlet.crawler.AllowedSet.isWhiteListed ( String  ip)

Definition at line 34 of file AllowedSet.java.

34  {
35  return ip != null && whiteList.contains(ip);
36  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: