public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException { SmooksResourceConfigurationList configList; if(baseURI == null || baseURI.trim().equals("")) { throw new IllegalArgumentException("null or empty 'name' arg in method call."); } if(resourceConfigStream == null) { throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call."); } configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader()); addSmooksResourceConfigurationList(configList); return configList; }
/** * Register the set of resources specified in the supplied XML configuration * stream. * @param baseURI The base URI to be associated with the configuration stream. * @param resourceConfigStream XML resource configuration stream. * @return The SmooksResourceConfigurationList created from the added resource configuration. * @throws SAXException Error parsing the resource stream. * @throws IOException Error reading resource stream. * @see SmooksResourceConfiguration */ public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException { SmooksResourceConfigurationList configList; if(baseURI == null || baseURI.trim().equals("")) { throw new IllegalArgumentException("null or empty 'name' arg in method call."); } if(resourceConfigStream == null) { throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call."); } configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader()); addSmooksResourceConfigurationList(configList); return configList; }
/** * Register the set of resources specified in the supplied XML configuration * stream. * @param baseURI The base URI to be associated with the configuration stream. * @param resourceConfigStream XML resource configuration stream. * @return The SmooksResourceConfigurationList created from the added resource configuration. * @throws SAXException Error parsing the resource stream. * @throws IOException Error reading resource stream. * @see SmooksResourceConfiguration */ public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException { SmooksResourceConfigurationList configList; if(baseURI == null || baseURI.trim().equals("")) { throw new IllegalArgumentException("null or empty 'name' arg in method call."); } if(resourceConfigStream == null) { throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call."); } configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader()); addSmooksResourceConfigurationList(configList); return configList; }
/** * Register the set of resources specified in the supplied XML configuration * stream. * @param baseURI The base URI to be associated with the configuration stream. * @param resourceConfigStream XML resource configuration stream. * @return The SmooksResourceConfigurationList created from the added resource configuration. * @throws SAXException Error parsing the resource stream. * @throws IOException Error reading resource stream. * @see SmooksResourceConfiguration */ public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException { SmooksResourceConfigurationList configList; if(baseURI == null || baseURI.trim().equals("")) { throw new IllegalArgumentException("null or empty 'name' arg in method call."); } if(resourceConfigStream == null) { throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call."); } configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader()); addSmooksResourceConfigurationList(configList); return configList; }