- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getCrawlDelay (2.28 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
assertTrue(robotsTxt.allows("/foo/bar/", userAgent)); assertTrue(robotsTxt.allows("/foo/bar/index.html", userAgent)); assertEquals(0, robotsTxt.getCrawlDelay(userAgent)); } for (String userAgent : new String[] { "BruteBot", "FOO BruteBot/1.0" }) { assertFalse(robotsTxt.allows("/aaa", userAgent));
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 5.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java
* or no crawl delay is specified for the matching directive. */ public int getCrawlDelay(final String userAgent) { final Directive directive = getMatchedDirective(userAgent); if (directive == null) { return 0; } return directive.getCrawlDelay(); } /** * Returns the most specific directive matching the given user agent.
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 10K bytes - Viewed (0)