Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Rule (0.02 sec)

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

            public void addRule(int index, Rule rule) {
                if (rule != null) {
                    rules.add(index, rule);
                }
            }
    
            @Override
            public boolean removeRule(Rule rule) {
                return rules.remove(rule);
            }
    
            @Override
            public boolean hasRule(Rule rule) {
                return rules.contains(rule);
            }
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java

         */
        public void test_matchWithNullResponseData() {
            ConfigurableRule rule = new ConfigurableRule();
            rule.setRuleId("nullTest");
            rule.setResponseProcessor(new TestResponseProcessor("nullProcessor"));
    
            // Should handle null gracefully
            assertFalse(rule.match(null));
        }
    
        /**
         * Test Rule with null rule ID
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/AbstractRule.java

     */
    package org.codelibs.fess.crawler.rule.impl;
    
    import org.codelibs.fess.crawler.container.CrawlerContainer;
    import org.codelibs.fess.crawler.processor.ResponseProcessor;
    import org.codelibs.fess.crawler.rule.Rule;
    import org.codelibs.fess.crawler.rule.RuleManager;
    
    import jakarta.annotation.Resource;
    
    /**
     * Abstract base class for implementing {@link Rule} interfaces.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

                if (rule != null) {
                    rules.add(rule);
                }
            }
    
            @Override
            public void addRule(int index, Rule rule) {
                if (rule != null) {
                    rules.add(index, rule);
                }
            }
    
            @Override
            public boolean removeRule(Rule rule) {
                return rules.remove(rule);
            }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            @Override
            public Rule getRule(ResponseData responseData) {
                return null;
            }
    
            @Override
            public void addRule(Rule rule) {
            }
    
            @Override
            public void addRule(int index, Rule rule) {
            }
    
            @Override
            public boolean removeRule(Rule rule) {
                return false;
            }
    
            @Override
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  6. cmd/data-scanner_test.go

    	lcXML := `
    <LifecycleConfiguration>
           <Rule>
                   <ID>max-versions</ID>
                   <Status>Enabled</Status>
                   <NoncurrentVersionExpiration>
                           <NewerNoncurrentVersions>2</NewerNoncurrentVersions>
                   </NoncurrentVersionExpiration>
           </Rule>
           <Rule>
                   <ID>delete-all-versions</ID>
                   <Status>Enabled</Status>
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                    .<SitemapsRule> singleton("sitemapsRule", SitemapsRule.class, rule -> {
                        rule.setResponseProcessor(container.getComponent("sitemapsResponseProcessor"));
                        rule.setRuleId("sitemapsRule");
                        rule.addRule("url", ".*sitemap.*");
                    })//
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  8. cmd/site-replication.go

    				}
    				for _, rule := range meta.lifecycleConfig.Rules {
    					if !rule.Expiration.IsNull() || !rule.NoncurrentVersionExpiration.IsNull() {
    						// copy the non transition details of the rule
    						ruleData, err := xml.Marshal(rule.CloneNonTransition())
    						if err != nil {
    							return info, errSRBackendIssue(err)
    						}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 184.7K bytes
    - Viewed (1)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/TransformerTest.java

                    byte[] bytes = is.readAllBytes();
                    String content = new String(bytes);
                    for (Map.Entry<String, String> rule : transformationRules.entrySet()) {
                        content = content.replaceAll(rule.getKey(), rule.getValue());
                    }
                    resultData.setData(content.getBytes());
                } catch (Exception e) {
                    throw new RuntimeException(e);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 28K bytes
    - Viewed (0)
  10. cmd/bucket-lifecycle.go

    func validateTransitionTier(lc *lifecycle.Lifecycle) error {
    	for _, rule := range lc.Rules {
    		if rule.Transition.StorageClass != "" {
    			if valid := globalTierConfigMgr.IsTierValid(rule.Transition.StorageClass); !valid {
    				return errInvalidStorageClass
    			}
    		}
    		if rule.NoncurrentVersionTransition.StorageClass != "" {
    			if valid := globalTierConfigMgr.IsTierValid(rule.NoncurrentVersionTransition.StorageClass); !valid {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33.7K bytes
    - Viewed (0)
Back to top