(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Tue, 1 Aug 2006 11:47:54 +0000 (11:47 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Tue, 1 Aug 2006 11:47:54 +0000 (11:47 +0000)
crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java
crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramConfigurationParser.java

index 31eb28783713dbc982808a218f879a49e315c2bc..5125f407d45094b4bc71698ef47c5fe375691ed0 100644 (file)
@@ -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<ProgramFilter> programFilters = parser.getFilters();
 
index fc41cde40aae4340b1f338f523a875433fdcc875..8a5d5acaf1880886b21e1736fb504b9f46190730 100644 (file)
@@ -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<ProgramFilter> _filters;
-    
-    private XslTransformer _transformer;
 
-    ProgramConfigurationParser(XslTransformer aTransformer) {
+    ProgramConfigurationParser() {
         _filters = null;
-        _transformer = aTransformer;
     }
 
     /**