From: erik Date: Tue, 1 Aug 2006 11:47:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: BEFORE_MAVEN_MIGRATION~69 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=fe5539c3fc40659242cac7b2954a04101ba94504;p=utils --- diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java index 31eb2878..5125f407 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java @@ -153,8 +153,7 @@ public class KissCrawler { Crawler crawler = createCrawler(aCrawlerConfig, client, transformer); InputStream programConfigFile = new FileInputStream(new File( aProgramConfig)); - ProgramConfigurationParser parser = new ProgramConfigurationParser( - transformer); + ProgramConfigurationParser parser = new ProgramConfigurationParser(); parser.parse(programConfigFile); List programFilters = parser.getFilters(); diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramConfigurationParser.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramConfigurationParser.java index fc41cde4..8a5d5aca 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramConfigurationParser.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramConfigurationParser.java @@ -30,23 +30,13 @@ import org.wamblee.conditions.AndCondition; import org.wamblee.conditions.Condition; import org.wamblee.conditions.PropertyRegexCondition; import org.wamblee.crawler.kiss.guide.Program; -import org.wamblee.xml.XslTransformer; /** * Parse the configuration of desired programs. */ class ProgramConfigurationParser { - private static final int DEFAULT_SMTP_PORT = 25; - private static final int DEFAULT_PRIORITY = 1; - // Formatting configuration. - private static final String ELEM_FORMAT = "format"; - - private static final String ELEM_TEXT = "text"; - - private static final String ELEM_HTML = "html"; - // Configuration of interesting programs. private static final String ELEM_PROGRAM = "program"; @@ -62,12 +52,9 @@ class ProgramConfigurationParser { private static final String ACTION_NOTIFY = "notify"; private List _filters; - - private XslTransformer _transformer; - ProgramConfigurationParser(XslTransformer aTransformer) { + ProgramConfigurationParser() { _filters = null; - _transformer = aTransformer; } /**