import org.wamblee.crawler.kiss.notification.MailNotifier;
import org.wamblee.crawler.kiss.notification.MailServer;
import org.wamblee.crawler.kiss.notification.Notifier;
+import org.wamblee.xml.XslTransformer;
/**
* Parse the configuration of desired programs.
private static final String ACTION_NOTIFY = "notify";
private List<ProgramFilter> _filters;
+
+ private XslTransformer _transformer;
private Notifier _notifier;
- ProgramConfigurationParser() {
+ ProgramConfigurationParser(XslTransformer aTransformer) {
_filters = null;
_notifier = null;
+ _transformer = aTransformer;
}
/**
String htmlXslt = format.elementTextTrim(ELEM_HTML);
String textXslt = format.elementTextTrim(ELEM_TEXT);
- return new MailNotifier(from, to, subject, htmlXslt, textXslt, server);
+ return new MailNotifier(from, to, subject, htmlXslt, textXslt, server, _transformer);
}
/**