Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for allRequired (0.1 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RegexRuleTest.java

     *
     */
    public class RegexRuleTest extends PlainTestCase {
    
        public void test_match_default() {
            final RegexRule regexRule = new RegexRule();
            regexRule.defaultRule = true;
            regexRule.allRequired = true;
            regexRule.addRule("url", Pattern.compile("http:.*"));
            regexRule.addRule("mimeType", Pattern.compile("text/html"));
    
            assertTrue(regexRule.match(getTestData1()));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RegexRule.java

        }
    
        public boolean isAllRequired() {
            return allRequired;
        }
    
        public void setAllRequired(final boolean allRequired) {
            this.allRequired = allRequired;
        }
    
        @Override
        public boolean equals(final Object obj) {
            if (obj instanceof final RegexRule rule && allRequired == rule.isAllRequired() && defaultRule == rule.isDefaultRule()
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/main/resources/crawler/rule.xml

    				<property name="successfulHttpCodes">(int[])[200]</property>
    				<property name="notModifiedHttpCodes">(int[])[304]</property>
    			</component>
    		</property>
    		<property name="allRequired">true</property>
    		<postConstruct name="addRule">
    			<arg>"url"</arg>
    			<arg>"http[s]?:.*"</arg>
    		</postConstruct>
    		<postConstruct name="addRule">
    			<arg>"mimeType"</arg>
    			<!-- Supported MIME type -->
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jun 04 08:42:49 UTC 2020
    - 4.6K bytes
    - Viewed (0)
Back to top