Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for sitemapsRule (0.09 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/SitemapsRule.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * @author shinsuke
     *
     */
    public class SitemapsRule extends RegexRule {
        /**
         *
         */
        private static final long serialVersionUID = 1L;
    
        private static final Logger logger = LoggerFactory.getLogger(SitemapsRule.class);
    
        @Override
        public boolean match(final ResponseData responseData) {
            if (super.match(responseData)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/SitemapsRuleTest.java

        public SitemapsRule sitemapsRule;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("sitemapsHelper", SitemapsHelper.class)//
                    .singleton("sitemapsRule", SitemapsRule.class);
            sitemapsRule = container.getComponent("sitemapsRule");
        }
    
        public void test_match() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImplTest.java

                    .singleton("sitemapsRule", SitemapsRule.class)//
                    .singleton("fileRule", RegexRule.class)//
                    .singleton("ruleManager", RuleManagerImpl.class);
    
            ruleManager = container.getComponent("ruleManager");
    
            SitemapsRule sitemapsRule = container.getComponent("sitemapsRule");
            sitemapsRule.setRuleId("sitemapsRule");
            sitemapsRule.addRule("url", ".*sitemap.*");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. fess-crawler-lasta/src/main/resources/crawler/rule.xml

    		<postConstruct name="addRule">
    			<arg>sitemapsRule</arg>
    		</postConstruct>
    		<postConstruct name="addRule">
    			<arg>fileRule</arg>
    		</postConstruct>
    	</component>
    
    	<component name="sitemapsRule" class="org.codelibs.fess.crawler.rule.impl.SitemapsRule">
    		<property name="ruleId">"sitemapsRule"</property>
    		<property name="responseProcessor">
    			<component
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 1.5K bytes
    - Viewed (0)
  5. src/main/resources/crawler/rule.xml

    			<arg>fsFileRule</arg>
    		</postConstruct>
    		<postConstruct name="addRule">
    			<arg>defaultRule</arg>
    		</postConstruct>
    	</component>
    
    	<component name="sitemapsRule" class="org.codelibs.fess.crawler.rule.impl.RegexRule" >
    		<property name="ruleId">"sitemapsRule"</property>
    		<property name="responseProcessor">
    			<component class="org.codelibs.fess.crawler.processor.impl.SitemapsResponseProcessor">
    			</component>
    		</property>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jun 04 08:42:49 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                    .singleton("sitemapsResponseProcessor", SitemapsResponseProcessor.class)//
                    .<SitemapsRule> singleton("sitemapsRule", SitemapsRule.class, rule -> {
                        rule.setResponseProcessor(container.getComponent("sitemapsResponseProcessor"));
                        rule.setRuleId("sitemapsRule");
                        rule.addRule("url", ".*sitemap.*");
                    })//
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

                buf.append("</url>").append('\n');
                buf.append("</urlset>").append('\n');
                File sitemapsFile = new File(tempDir, "sitemaps.xml");
                FileUtil.writeBytes(sitemapsFile.getAbsolutePath(), buf.toString().getBytes("UTF-8"));
                robotTxtFile.deleteOnExit();
    
                // sitemaps.txt
                buf = new StringBuilder();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

                buf.append("</url>").append('\n');
                buf.append("</urlset>").append('\n');
                File sitemapsFile = new File(tempDir, "sitemaps.xml");
                FileUtil.writeBytes(sitemapsFile.getAbsolutePath(), buf.toString().getBytes("UTF-8"));
                robotTxtFile.deleteOnExit();
    
                // sitemaps.txt
                buf = new StringBuilder();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top