Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RegexRule (0.05 sec)

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

    import org.codelibs.core.beans.util.BeanUtil;
    import org.codelibs.core.beans.util.CopyOptions;
    import org.codelibs.fess.crawler.entity.ResponseData;
    
    /**
     * @author shinsuke
     *
     */
    public class RegexRule extends AbstractRule {
    
        private static final long serialVersionUID = 1L;
    
        protected boolean defaultRule = false;
    
        protected boolean allRequired = true;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RegexRuleTest.java

            assertTrue(regexRule.match(getTestData4()));
        }
    
        public void test_match_url() {
            final RegexRule regexRule = new RegexRule();
            regexRule.defaultRule = false;
            regexRule.allRequired = true;
            regexRule.addRule("url", Pattern.compile("http:.*"));
    
            assertTrue(regexRule.match(getTestData1()));
            assertFalse(regexRule.match(getTestData2()));
            assertTrue(regexRule.match(getTestData3()));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. 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)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImplTest.java

            assertNotNull(rule);
            assertEquals("fileRule", rule.getRuleId());
    
            final RegexRule rule2 = new RegexRule();
            rule2.setAllRequired(true);
            rule2.addRule("url", "http:.*");
    
            final RegexRule rule3 = new RegexRule();
            rule3.addRule("url", "http:.*");
    
            assertFalse(ruleManager.hasRule(rule2));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/SitemapsRule.java

    import org.codelibs.fess.crawler.helper.SitemapsHelper;
    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
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. fess-crawler-lasta/src/main/resources/crawler/rule.xml

    		</property>
    		<postConstruct name="addRule">
    			<arg>"url"</arg>
    			<arg>".*sitemap.*"</arg>
    		</postConstruct>
    	</component>
    
    	<component name="fileRule" class="org.codelibs.fess.crawler.rule.impl.RegexRule">
    		<property name="ruleId">"fileRule"</property>
    		<property name="defaultRule">true</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)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                        processor.setSuccessfulHttpCodes(new int[] { 200 });
                        processor.setNotModifiedHttpCodes(new int[] { 304 });
                    })//
                    .<RegexRule> singleton("fileRule", RegexRule.class, rule -> {
                        rule.setRuleId("fileRule");
                        rule.setDefaultRule(true);
                        rule.setResponseProcessor(container.getComponent("defaultResponseProcessor"));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18K bytes
    - Viewed (0)
Back to top