/** * Default constructor, which defines no servlets. */ public ServletRunner() { _application = new WebApplication(); completeInitialization( null ); }
/** * Default constructor, which defines no servlets. */ public ServletRunner() { _application = new WebApplication(); completeInitialization( null ); }
/** * Default constructor, which defines no servlets. */ public ServletRunner() { _application = new WebApplication(); completeInitialization( null ); }
/** * Constructor which expects a File object representing the web.xml for the * application and a context path under which to mount it. * * @param webXml the web.xml file * @param contextPath the context path * @since 1.6 */ public ServletRunner( File webXml, String contextPath ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXml ), webXml.getParentFile().getParentFile(), contextPath ); completeInitialization( contextPath ); }
/** * Constructor which expects a File object representing the web.xml for the * application and a context path under which to mount it. * * @param webXml the web.xml file * @param contextPath the context path * @since 1.6 */ public ServletRunner( File webXml, String contextPath ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXml ), webXml.getParentFile().getParentFile(), contextPath ); completeInitialization( contextPath ); }
/** * Constructor which expects a File object representing the web.xml for the * application and a context path under which to mount it. * * @param webXml the web.xml file * @param contextPath the context path * @since 1.6 */ public ServletRunner( File webXml, String contextPath ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXml ), webXml.getParentFile().getParentFile(), contextPath ); completeInitialization( contextPath ); }
/** * Constructor which expects the full path to the web.xml for the * application. * @deprecated as of 1.6, use {@link #ServletRunner(File)} * * @param webXMLFileSpec the full path to the web.xml file */ public ServletRunner( String webXMLFileSpec ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXMLFileSpec ) ); completeInitialization( null ); }
/** * Constructor which expects the full path to the web.xml for the * application. * @deprecated as of 1.6, use {@link #ServletRunner(File)} * * @param webXMLFileSpec the full path to the web.xml file */ public ServletRunner( String webXMLFileSpec ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXMLFileSpec ) ); completeInitialization( null ); }
/** * Constructor which expects a File object representing the web.xml for the * application. * * @param webXml the web.xml file * @since 1.6 */ public ServletRunner( File webXml ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXml ) ); completeInitialization( null ); }
/** * Constructor which expects the full path to the web.xml for the * application. * @deprecated as of 1.6, use {@link #ServletRunner(File)} * * @param webXMLFileSpec the full path to the web.xml file */ public ServletRunner( String webXMLFileSpec ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXMLFileSpec ) ); completeInitialization( null ); }
/** * Constructor which expects a File object representing the web.xml for the * application. * * @param webXml the web.xml file * @since 1.6 */ public ServletRunner( File webXml ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXml ) ); completeInitialization( null ); }
/** * constructor with entity Resolver * as asked for in Bug report 1222269 by jim - jafergus * @param webXMLFileSpec * @param resolver * @throws IOException * @throws SAXException * @since 1.7 */ public ServletRunner( String webXMLFileSpec,EntityResolver resolver ) throws IOException, SAXException { DocumentBuilder parser = HttpUnitUtils.newParser(); parser.setEntityResolver(resolver); _application = new WebApplication( parser.parse( webXMLFileSpec ) ); completeInitialization( null ); }
/** * Constructor which expects a File object representing the web.xml for the * application. * * @param webXml the web.xml file * @since 1.6 */ public ServletRunner( File webXml ) throws IOException, SAXException { _application = new WebApplication( HttpUnitUtils.newParser().parse( webXml ) ); completeInitialization( null ); }
/** * Constructor which expects an input stream containing the web.xml for the application. * @param webXML * @param contextPath * @throws IOException * @throws SAXException */ public ServletRunner( InputStream webXML, String contextPath ) throws IOException, SAXException { InputSource inputSource=new InputSource( webXML ); Document doc=HttpUnitUtils.parse(inputSource); try { _application = new WebApplication( doc, contextPath ); completeInitialization( contextPath ); } catch (java.net.MalformedURLException mue) { throw mue; } }
/** * constructor with entity Resolver * as asked for in Bug report 1222269 by jim - jafergus * @param webXMLFileSpec * @param resolver * @throws IOException * @throws SAXException * @since 1.7 */ public ServletRunner( String webXMLFileSpec,EntityResolver resolver ) throws IOException, SAXException { DocumentBuilder parser = HttpUnitUtils.newParser(); parser.setEntityResolver(resolver); _application = new WebApplication( parser.parse( webXMLFileSpec ) ); completeInitialization( null ); }
/** * constructor with entity Resolver * as asked for in Bug report 1222269 by jim - jafergus * @param webXMLFileSpec * @param resolver * @throws IOException * @throws SAXException * @since 1.7 */ public ServletRunner( String webXMLFileSpec,EntityResolver resolver ) throws IOException, SAXException { DocumentBuilder parser = HttpUnitUtils.newParser(); parser.setEntityResolver(resolver); _application = new WebApplication( parser.parse( webXMLFileSpec ) ); completeInitialization( null ); }
/** * Constructor which expects an input stream containing the web.xml for the application. * @param webXML * @param contextPath * @throws IOException * @throws SAXException */ public ServletRunner( InputStream webXML, String contextPath ) throws IOException, SAXException { InputSource inputSource=new InputSource( webXML ); Document doc=HttpUnitUtils.parse(inputSource); try { _application = new WebApplication( doc, contextPath ); completeInitialization( contextPath ); } catch (java.net.MalformedURLException mue) { throw mue; } }
/** * Constructor which expects an input stream containing the web.xml for the application. * @param webXML * @param contextPath * @throws IOException * @throws SAXException */ public ServletRunner( InputStream webXML, String contextPath ) throws IOException, SAXException { InputSource inputSource=new InputSource( webXML ); Document doc=HttpUnitUtils.parse(inputSource); try { _application = new WebApplication( doc, contextPath ); completeInitialization( contextPath ); } catch (java.net.MalformedURLException mue) { throw mue; } }