Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isUrlSet (0.09 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/SitemapsHelperTest.java

            final SitemapSet sitemapSet = sitemapsHelper.parse(in);
            final Sitemap[] sitemaps = sitemapSet.getSitemaps();
            assertEquals(5, sitemaps.length);
            assertTrue(sitemapSet.isUrlSet());
            assertFalse(sitemapSet.isIndex());
    
            assertEquals("2005-01-01", sitemaps[0].getLastmod());
            assertEquals("http://www.example.com/", sitemaps[0].getLoc());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/SitemapSet.java

        public Sitemap[] getSitemaps() {
            return sitemapList.toArray(new Sitemap[sitemapList.size()]);
        }
    
        public void setType(final String type) {
            this.type = type;
        }
    
        public boolean isUrlSet() {
            return URLSET.equals(type);
        }
    
        public boolean isIndex() {
            return INDEX.equals(type);
        }
    
        @Override
        public String toString() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top