Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for addSitemaps (0.19 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerContext.java

            return maxAccessCount;
        }
    
        public void setMaxAccessCount(final long maxAccessCount) {
            this.maxAccessCount = maxAccessCount;
        }
    
        public void addSitemaps(final String[] sitemaps) {
            sitemapsLocal.set(sitemaps);
        }
    
        public String[] removeSitemaps() {
            final String[] sitemaps = sitemapsLocal.get();
            if (sitemaps != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                        if (robotsTxt != null) {
                            final String[] sitemaps = robotsTxt.getSitemaps();
                            if (sitemaps.length > 0) {
                                crawlerContext.addSitemaps(sitemaps);
                            }
    
                            final RobotsTxt.Directive directive = robotsTxt.getMatchedDirective(userAgent);
                            if (directive != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

                        final SitemapUrl sitemapUrl = new SitemapUrl();
                        sitemapUrl.setLoc(url);
                        sitemapSet.addSitemap(sitemapUrl);
                    }
                }
                return sitemapSet;
            } catch (final Exception e) {
                throw new SitemapsException("Could not parse Text Sitemaps.", e);
            }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java

        }
    
        public void addDirective(final Directive directive) {
            directiveMap.put(Pattern.compile(directive.getUserAgent().replace("*", ".*"), Pattern.CASE_INSENSITIVE), directive);
        }
    
        public void addSitemap(final String url) {
            sitemapList.add(url);
        }
    
        public String[] getSitemaps() {
            return sitemapList.toArray(new String[sitemapList.size()]);
        }
    
        public static class Directive {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/SitemapSet.java

        public static final String INDEX = "Index";
    
        private final List<Sitemap> sitemapList = new ArrayList<>();
    
        private String type = URLSET;
    
        public void addSitemap(final Sitemap sitemap) {
            sitemapList.add(sitemap);
        }
    
        public void removeSitemap(final Sitemap sitemap) {
            sitemapList.remove(sitemap);
        }
    
        public Sitemap[] getSitemaps() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java

                                }
                            }
                        } else if ((value = getValue(SITEMAP_RECORD, line)) != null && value.length() > 0) {
                            robotsTxt.addSitemap(value);
                        }
                    }
                }
    
                return robotsTxt;
            } catch (final Exception e) {
                throw new RobotsTxtException("Failed to parse robots.txt.", e);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top