public class RobotstxtServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected RobotstxtConfig |
config |
protected Map<String,HostDirectives> |
host2directivesCache |
protected PageFetcher |
pageFetcher |
| Constructor and Description |
|---|
RobotstxtServer(RobotstxtConfig config,
PageFetcher pageFetcher) |
RobotstxtServer(RobotstxtConfig config,
PageFetcher pageFetcher,
int maxBytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allows(WebURL webURL)
Please note that in the case of a bad URL, TRUE will be returned
|
protected RobotstxtConfig config
protected final Map<String,HostDirectives> host2directivesCache
protected PageFetcher pageFetcher
public RobotstxtServer(RobotstxtConfig config, PageFetcher pageFetcher)
public RobotstxtServer(RobotstxtConfig config, PageFetcher pageFetcher, int maxBytes)
public boolean allows(WebURL webURL)
Copyright © 2017. All rights reserved.