- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for RobotsTxt (0.04 seconds)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java
private final List<String> sitemapList = new ArrayList<>(); /** * Creates a new RobotsTxt instance. */ public RobotsTxt() { // Default constructor } /** * Checks if access to a given path is allowed for a specific user agent according to robots.txt rules. * * @param path The path to check for access permission
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 18.5K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
assertTrue(robotsTxt.allows("/bbb", "Crawler")); assertTrue(robotsTxt.allows("/ccc", "Crawler")); assertTrue(robotsTxt.allows("/ddd", "Crawler")); assertTrue(robotsTxt.allows("/aaa", "Crawler/1.0")); assertFalse(robotsTxt.allows("/bbb", "Crawler/1.0")); assertTrue(robotsTxt.allows("/ccc", "Crawler/1.0")); assertTrue(robotsTxt.allows("/ddd", "Crawler/1.0"));
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 20.6K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RobotsTxtTest.java
Directive directive = new Directive("MyBot"); robotsTxt.addDirective(directive); Directive retrieved = robotsTxt.getDirective("OtherBot"); assertNull(retrieved); } public void test_getDirectiveWithNull() { // Test getDirective with null user agent RobotsTxt robotsTxt = new RobotsTxt();Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 13 13:29:22 GMT 2025 - 14.4K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java
try { reader = new BufferedReader(new InputStreamReader(new BOMInputStream(stream), charsetName)); String line; final RobotsTxt robotsTxt = new RobotsTxt(); final List<Directive> currentDirectiveList = new ArrayList<>(); boolean isGroupRecordStarted = false; while ((line = reader.readLine()) != null) { try {Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Fri Nov 14 12:52:01 GMT 2025 - 11.4K bytes - Click Count (0)