- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for addRule (0.04 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/BinaryCompatibilityHelper.groovy
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 11 17:15:16 UTC 2024 - 6.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RegexRuleTest.java
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())); assertTrue(regexRule.match(getTestData2()));
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 4.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImplTest.java
sitemapsRule.setRuleId("sitemapsRule"); sitemapsRule.addRule("url", ".*sitemap.*"); ruleManager.addRule(sitemapsRule); RegexRule fileRule = container.getComponent("fileRule"); fileRule.setRuleId("fileRule"); fileRule.setDefaultRule(true); ruleManager.addRule(fileRule); } public void test_getRule() {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImpl.java
} /* * (non-Javadoc) * * @see * org.codelibs.fess.crawler.rule.RuleManager#addRule(org.codelibs.fess.crawler.rule.Rule) */ @Override public void addRule(final Rule rule) { ruleList.add(rule); } @Override public void addRule(final int index, final Rule rule) { ruleList.add(index, rule); } /* * (non-Javadoc) *
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/RuleManager.java
import org.codelibs.fess.crawler.entity.ResponseData; /** * @author shinsuke * */ public interface RuleManager { Rule getRule(ResponseData responseData); void addRule(Rule rule); void addRule(int index, Rule rule); boolean removeRule(Rule rule); boolean hasRule(Rule rule);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 967 bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RegexRule.java
return true; } } return allRequired; } public void addRule(final String key, final String regex) { regexMap.put(key, Pattern.compile(regex)); } public void addRule(final String key, final Pattern pattern) { regexMap.put(key, pattern); } public boolean isDefaultRule() { return defaultRule;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 3.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/SitemapsRuleTest.java
sitemapsRule.addRule("url", Pattern.compile(".*sitemap.*")); assertTrue(sitemapsRule.match(responseData)); InputStream is = responseData.getResponseBody(); assertTrue(is instanceof InputStream); CloseableUtil.closeQuietly(responseData); } private void assertMatchFalse(ResponseData responseData) { sitemapsRule.addRule("url", Pattern.compile(".*sitemap.*"));
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 4.7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/AbstractRule.java
@Resource protected CrawlerContainer crawlerContainer; public void register(final int index) { final RuleManager ruleManager = crawlerContainer.getComponent("ruleManager"); ruleManager.addRule(index, this); } @Override public String getRuleId() { return ruleId; } public void setRuleId(final String ruleId) { this.ruleId = ruleId; } @Override
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 1.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
client.setRetryInterval(500); }).prototype("fsClient", FileSystemClient.class).prototype("ruleManager", RuleManagerImpl.class, manager -> { manager.addRule(container.getComponent("sitemapsRule")); manager.addRule(container.getComponent("fileRule")); }).prototype("accessResult", AccessResultImpl.class).prototype("urlQueue", UrlQueueImpl.class)
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 18K bytes - Viewed (0) -
cmd/site-replication.go
} else { replicationConfig = replication.Config{} } if err == nil { err = replicationConfig.AddRule(opts) } } else { err = replicationConfig.EditRule(opts) } default: err = replicationConfig.AddRule(opts) } if err != nil { return c.annotatePeerErr(peer.Name, "Error adding bucket replication rule", err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 185.1K bytes - Viewed (0)