(no commit message)
[utils] / crawler / kiss / src / org / wamblee / crawler / kiss / notification / MailNotifier.java
index 3b6431d763db1ec78e290fba51bf185e2a1309e0..e464657214c2560b1dba226445853d82acbaaa09 100644 (file)
@@ -128,4 +128,18 @@ public class MailNotifier implements Notifier {
         String reportXmlText = aReport.asXML();
         return _transformer.textTransform(reportXmlText.getBytes(), _transformer.resolve(aXslt));
     }
+    
+    /* (non-Javadoc)
+     * @see org.wamblee.crawler.kiss.notification.Notifier#asHtml(org.dom4j.Element)
+     */
+    public String asHtml(Element aReport) throws IOException, TransformerException {
+        return transformReport(aReport, _htmlXslt);
+    }
+    
+    /* (non-Javadoc)
+     * @see org.wamblee.crawler.kiss.notification.Notifier#asText(org.dom4j.Element)
+     */
+    public String asText(Element aReport) throws IOException, TransformerException {
+        return transformReport(aReport, _textXslt);
+    }
 }