BrightSide Workbench Full Report + Source Code
org.turro.elephant.servlet.crawler.CrawlerLists Class Reference
Inheritance diagram for org.turro.elephant.servlet.crawler.CrawlerLists:
Collaboration diagram for org.turro.elephant.servlet.crawler.CrawlerLists:

Public Member Functions

Set< ActivityAction > getWhiteList ()
 
Set< ActivityAction > getBlackList ()
 
boolean isBlackListed (String ip)
 
boolean isWhiteListed (String ip)
 
AllowedSet getAllowedSet ()
 
String toJson ()
 
String toJson (Map< String, Object > properties)
 

Detailed Description

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

Definition at line 31 of file CrawlerLists.java.

Member Function Documentation

◆ getAllowedSet()

AllowedSet org.turro.elephant.servlet.crawler.CrawlerLists.getAllowedSet ( )

Definition at line 52 of file CrawlerLists.java.

52  {
53  return AllowedSet.from(this);
54  }
Here is the call graph for this function:

◆ getBlackList()

Set<ActivityAction> org.turro.elephant.servlet.crawler.CrawlerLists.getBlackList ( )

Definition at line 40 of file CrawlerLists.java.

40  {
41  return blackList;
42  }
Here is the caller graph for this function:

◆ getWhiteList()

Set<ActivityAction> org.turro.elephant.servlet.crawler.CrawlerLists.getWhiteList ( )

Definition at line 36 of file CrawlerLists.java.

36  {
37  return whiteList;
38  }
Here is the caller graph for this function:

◆ isBlackListed()

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

Definition at line 44 of file CrawlerLists.java.

44  {
45  return blackList.stream().anyMatch(aa -> ip.equals(aa.getIp()));
46  }

◆ isWhiteListed()

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

Definition at line 48 of file CrawlerLists.java.

48  {
49  return whiteList.stream().anyMatch(aa -> ip.equals(aa.getIp()));
50  }

◆ toJson() [1/2]

String org.turro.elephant.servlet.crawler.CrawlerLists.toJson ( )

Definition at line 57 of file CrawlerLists.java.

57  {
58  return toJson(this);
59  }
Here is the caller graph for this function:

◆ toJson() [2/2]

String org.turro.elephant.servlet.crawler.CrawlerLists.toJson ( Map< String, Object >  properties)

Definition at line 62 of file CrawlerLists.java.

62  {
63  return toJson(this, properties);
64  }
Here is the call graph for this function:

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