Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getAllows (0.04 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RobotsTxtTest.java

            // Test Directive addAllow
            Directive directive = new Directive("MyBot");
    
            directive.addAllow("/public/");
            directive.addAllow("/images/");
    
            String[] allows = directive.getAllows();
            assertEquals(2, allows.length);
            assertEquals("/public/", allows[0]);
            assertEquals("/images/", allows[1]);
        }
    
        public void test_directiveAddAllowNoDuplicates() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java

                }
            }
    
            /**
             * Gets all allowed path patterns for this directive.
             * @return an array of allowed path pattern strings
             */
            public String[] getAllows() {
                final String[] result = new String[allowedPaths.size()];
                for (int i = 0; i < allowedPaths.size(); i++) {
                    result[i] = allowedPaths.get(i).getPattern();
                }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                                        }
                                    }
                                }
                                if (useRobotsTxtAllows) {
                                    for (String urlPattern : directive.getAllows()) {
                                        if (StringUtil.isNotBlank(urlPattern)) {
                                            urlPattern = convertRobotsTxtPatternToRegex(urlPattern);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 53.7K bytes
    - Viewed (0)
Back to top