Renamed XSLT to XslTransformer.
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 25 Mar 2006 21:05:31 +0000 (21:05 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 25 Mar 2006 21:05:31 +0000 (21:05 +0000)
crawler/basic/src/org/wamblee/crawler/AbstractPageRequest.java
crawler/kiss/src/org/wamblee/crawler/kiss/notification/MailNotifier.java
support/src/org/wamblee/xml/XslTransformer.java [moved from support/src/org/wamblee/xml/XSLT.java with 98% similarity]

index 66627ca523faa4c56a112811e7ccdf9381107825..7a3755febaa6fbe8d86259500317079358567b63 100644 (file)
@@ -41,7 +41,7 @@ import org.w3c.dom.Document;
 import org.w3c.tidy.Tidy;
 import org.wamblee.xml.ClasspathUriResolver;
 import org.wamblee.xml.DOMUtility;
-import org.wamblee.xml.XSLT;
+import org.wamblee.xml.XslTransformer;
 
 /**
  * General support claas for all kinds of requests.
@@ -154,7 +154,7 @@ public abstract class AbstractPageRequest implements PageRequest {
             aMethod = executeWithRedirects(aClient, aMethod);
             byte[] xhtmlData = getXhtml(aMethod);
 
-            XSLT xsltProcessor = new XSLT(new ClasspathUriResolver());
+            XslTransformer xsltProcessor = new XslTransformer(new ClasspathUriResolver());
             Document transformed = xsltProcessor.transform(xhtmlData,
                     xsltProcessor.resolve(_xslt));
             ByteArrayOutputStream os = new ByteArrayOutputStream(); 
index 536135b28508288f65f42bf82f3ea3089584d66c..8d2ccf97422186687ff2bcac47deccbca941c359 100644 (file)
@@ -16,7 +16,7 @@ import org.apache.commons.mail.EmailException;
 import org.apache.commons.mail.HtmlEmail;
 import org.dom4j.Element;
 import org.wamblee.xml.ClasspathUriResolver;
-import org.wamblee.xml.XSLT;
+import org.wamblee.xml.XslTransformer;
 
 /**
  * A notifier that uses SMTP to notify users by mail.
@@ -112,7 +112,7 @@ public class MailNotifier implements Notifier {
     private String transformReport(Element aReport, String aXslt)
             throws IOException, TransformerException {
         String reportXmlText = aReport.asXML();
-        XSLT xsltProcessor = new XSLT(new ClasspathUriResolver());
+        XslTransformer xsltProcessor = new XslTransformer(new ClasspathUriResolver());
         return xsltProcessor.textTransform(reportXmlText.getBytes(), xsltProcessor.resolve(aXslt));
     }
 }
similarity index 98%
rename from support/src/org/wamblee/xml/XSLT.java
rename to support/src/org/wamblee/xml/XslTransformer.java
index 7ffe63b3ff132d0a8cbaf49dca6610f837acd794..ade3d1291d70203a54c188684140cb84b0ece73a 100644 (file)
@@ -39,7 +39,7 @@ import org.wamblee.io.FileResource;
 /**
  * XSLT utilities.
  */
-public class XSLT {
+public class XslTransformer {
 
     private TransformerFactory _factory;
 
@@ -49,7 +49,7 @@ public class XSLT {
      * @param aResolver
      *            URI resolver to use.
      */
-    public XSLT(URIResolver aResolver) {
+    public XslTransformer(URIResolver aResolver) {
         _factory = TransformerFactory.newInstance();
         _factory.setURIResolver(aResolver);
     }
@@ -58,7 +58,7 @@ public class XSLT {
      * Constructs the XSLT processor.
      * 
      */
-    public XSLT() {
+    public XslTransformer() {
         _factory = TransformerFactory.newInstance();
     }