From: erik Date: Sat, 25 Mar 2006 21:05:31 +0000 (+0000) Subject: Renamed XSLT to XslTransformer. X-Git-Tag: BEFORE_MAVEN_MIGRATION~150 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=4ca88c7dec30b0fae2338844b44f43d4592a42c6;p=utils Renamed XSLT to XslTransformer. --- diff --git a/crawler/basic/src/org/wamblee/crawler/AbstractPageRequest.java b/crawler/basic/src/org/wamblee/crawler/AbstractPageRequest.java index 66627ca5..7a3755fe 100644 --- a/crawler/basic/src/org/wamblee/crawler/AbstractPageRequest.java +++ b/crawler/basic/src/org/wamblee/crawler/AbstractPageRequest.java @@ -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(); diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/notification/MailNotifier.java b/crawler/kiss/src/org/wamblee/crawler/kiss/notification/MailNotifier.java index 536135b2..8d2ccf97 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/notification/MailNotifier.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/notification/MailNotifier.java @@ -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)); } } diff --git a/support/src/org/wamblee/xml/XSLT.java b/support/src/org/wamblee/xml/XslTransformer.java similarity index 98% rename from support/src/org/wamblee/xml/XSLT.java rename to support/src/org/wamblee/xml/XslTransformer.java index 7ffe63b3..ade3d129 100644 --- a/support/src/org/wamblee/xml/XSLT.java +++ b/support/src/org/wamblee/xml/XslTransformer.java @@ -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(); }