[Httpunit-commit] CVS: httpunit/src/com/meterware/servletunit ServletRunner.java,1.10,1.11
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-02-01 14:31:48
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/servletunit
In directory usw-pr-cvs1:/tmp/cvs-serv8509/src/com/meterware/servletunit
Modified Files:
ServletRunner.java
Log Message:
From Jochen Hiller: use JAXP-compliant parser
Index: ServletRunner.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/servletunit/ServletRunner.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ServletRunner.java 2002/02/01 14:21:35 1.10
+++ ServletRunner.java 2002/02/01 14:31:43 1.11
@@ -35,10 +35,6 @@
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-
import org.xml.sax.SAXException;
import org.xml.sax.InputSource;
import org.w3c.dom.Document;
@@ -61,8 +57,7 @@
* Constructor which expects the full path to the web.xml for the application.
**/
public ServletRunner( String webXMLFileSpec ) throws IOException, SAXException {
- DocumentBuilder parser = HttpUnitUtils.newParser();
- _application = new WebApplication( parser.parse( webXMLFileSpec ) );
+ _application = new WebApplication( HttpUnitUtils.newParser().parse( webXMLFileSpec ) );
}
@@ -70,8 +65,7 @@
* Constructor which expects an input stream containing the web.xml for the application.
**/
public ServletRunner( InputStream webXML ) throws IOException, SAXException {
- DocumentBuilder parser = HttpUnitUtils.newParser();
- _application = new WebApplication( parser.parse( new InputSource( webXML ) ) );
+ _application = new WebApplication( HttpUnitUtils.newParser().parse( new InputSource( webXML ) ) );
}
|