|
static final transient String | CRAWLERS_RESPONSE = "/WEB-INF/elephant/activity/crawlers.html" |
|
◆ blackList()
void org.turro.elephant.servlet.crawler.CrawlerOptions.blackList |
( |
ActivityAction |
action | ) |
|
Definition at line 106 of file CrawlerOptions.java.
107 CrawlerLists cl = loadLists();
108 cl.getBlackList().add(action);
◆ instance()
static CrawlerOptions org.turro.elephant.servlet.crawler.CrawlerOptions.instance |
( |
| ) |
|
|
static |
◆ isActive()
boolean org.turro.elephant.servlet.crawler.CrawlerOptions.isActive |
( |
| ) |
|
◆ isAllowedDomain()
boolean org.turro.elephant.servlet.crawler.CrawlerOptions.isAllowedDomain |
( |
String |
domain | ) |
|
Definition at line 93 of file CrawlerOptions.java.
94 return !Strings.isBlank(domain) && allowedDomains.stream().anyMatch(wd -> domain.endsWith(wd));
◆ isBadAgent()
boolean org.turro.elephant.servlet.crawler.CrawlerOptions.isBadAgent |
( |
String |
agent | ) |
|
Definition at line 88 of file CrawlerOptions.java.
89 return agent ==
null || badAgent.stream().anyMatch(br -> agent.matches(br));
◆ isBadRequest()
boolean org.turro.elephant.servlet.crawler.CrawlerOptions.isBadRequest |
( |
String |
request | ) |
|
Definition at line 83 of file CrawlerOptions.java.
84 return request ==
null || badRequest.stream().anyMatch(br -> request.matches(br));
◆ isBlackListed()
boolean org.turro.elephant.servlet.crawler.CrawlerOptions.isBlackListed |
( |
String |
ip | ) |
|
◆ isWhiteListed()
boolean org.turro.elephant.servlet.crawler.CrawlerOptions.isWhiteListed |
( |
String |
ip | ) |
|
◆ maxMinutes()
int org.turro.elephant.servlet.crawler.CrawlerOptions.maxMinutes |
( |
| ) |
|
◆ maxRequests()
int org.turro.elephant.servlet.crawler.CrawlerOptions.maxRequests |
( |
| ) |
|
◆ onBlackList()
Consumer<ActivityAction> org.turro.elephant.servlet.crawler.CrawlerOptions.onBlackList |
( |
| ) |
|
◆ onWhiteList()
Consumer<ActivityAction> org.turro.elephant.servlet.crawler.CrawlerOptions.onWhiteList |
( |
| ) |
|
◆ toJson() [1/2]
String org.turro.elephant.servlet.crawler.CrawlerOptions.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.elephant.servlet.crawler.CrawlerOptions.toJson |
( |
Map< String, Object > |
properties | ) |
|
◆ whiteList()
void org.turro.elephant.servlet.crawler.CrawlerOptions.whiteList |
( |
ActivityAction |
action | ) |
|
Definition at line 98 of file CrawlerOptions.java.
99 CrawlerLists cl = loadLists();
100 cl.getWhiteList().add(action);
◆ CRAWLERS_RESPONSE
final transient String org.turro.elephant.servlet.crawler.CrawlerOptions.CRAWLERS_RESPONSE = "/WEB-INF/elephant/activity/crawlers.html" |
|
static |
The documentation for this class was generated from the following file: