Class RobotsTxt
java.lang.Object
com.norconex.collector.http.robot.RobotsTxt
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRobotsTxt(IRobotsTxtFilter... filters) Creates a new robot txt object with the supplied filters.RobotsTxt(List<IRobotsTxtFilter> filters) Creates a new robot txt object with the supplied filters.RobotsTxt(List<IRobotsTxtFilter> filters, float crawlDelay) RobotsTxt(List<IRobotsTxtFilter> filters, List<String> sitemapLocations) RobotsTxt(List<IRobotsTxtFilter> filters, List<String> sitemapLocations, float crawlDelay) -
Method Summary
-
Field Details
-
UNSPECIFIED_CRAWL_DELAY
public static final float UNSPECIFIED_CRAWL_DELAY- See Also:
-
-
Constructor Details
-
RobotsTxt
Creates a new robot txt object with the supplied filters.- Parameters:
filters- filters
-
RobotsTxt
Creates a new robot txt object with the supplied filters.- Parameters:
filters- filters- Since:
- 3.0.0
-
RobotsTxt
-
RobotsTxt
-
RobotsTxt
-
-
Method Details
-
getFilters
Gets all filters.- Returns:
- filters (never
null)
-
getDisallowFilters
Gets "Disallow" filters.- Returns:
- disallow filters (never
null) - Since:
- 2.4.0
-
getAllowFilters
Gets "Allow" filters.- Returns:
- allow filters (never
null) - Since:
- 2.4.0
-
getSitemapLocations
-
getCrawlDelay
public float getCrawlDelay() -
equals
-
hashCode
public int hashCode() -
toString
-