public class RobotUtils extends Object
| Constructor and Description |
|---|
RobotUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BaseHttpFetcher |
createFetcher(BaseHttpFetcher fetcher) |
static BaseHttpFetcher |
createFetcher(UserAgent userAgent,
int maxThreads) |
static long |
getMaxFetchTime() |
static BaseRobotRules |
getRobotRules(BaseHttpFetcher fetcher,
BaseRobotsParser parser,
URL robotsUrl)
Externally visible, static method for use in tools and for testing.
|
public static BaseHttpFetcher createFetcher(BaseHttpFetcher fetcher)
public static BaseHttpFetcher createFetcher(UserAgent userAgent, int maxThreads)
public static long getMaxFetchTime()
public static BaseRobotRules getRobotRules(BaseHttpFetcher fetcher, BaseRobotsParser parser, URL robotsUrl)
fetcher - Fetcher for downloading robots.txt fileparser - a BaseRobotsParser to use for
obtaining appropriate rulesrobotsUrl - URL to robots.txt fileCopyright © 2009–2016 Crawler-Commons. All rights reserved.