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; }
configStore.addSmooksResourceConfigurationList(extConfigList); } catch (Exception e) { throw new SmooksConfigurationException("Failed to construct Smooks instance for processing extended configuration resource '" + resourcePath + "'.", e);
configStore.addSmooksResourceConfigurationList(extConfigList); } catch (Exception e) { throw new SmooksConfigurationException("Failed to construct Smooks instance for processing extended configuration resource '" + resourcePath + "'.", e);
configStore.addSmooksResourceConfigurationList(extConfigList); } catch (Exception e) { throw new SmooksConfigurationException("Failed to construct Smooks instance for processing extended configuration resource '" + resourcePath + "'.", e);
smooks.getApplicationContext().getStore().addSmooksResourceConfigurationList(configList); } else { throw new SAXException("Binding configuration resolver '" + bindingResolver.getClass().getName() + "' failed to resolve binding configuration for namespace '" + namespace + "'. Resolver must return an InputStream in the InputSource.");
configStore.addSmooksResourceConfigurationList(extConfigList); } catch (Exception e) { throw new SmooksConfigurationException("Failed to construct Smooks instance for processing extended configuration resource '" + resourcePath + "'.", e);
smooks.getApplicationContext().getStore().addSmooksResourceConfigurationList(configList); } else { throw new SAXException("Binding configuration resolver '" + bindingResolver.getClass().getName() + "' failed to resolve binding configuration for namespace '" + namespace + "'. Resolver must return an InputStream in the InputSource.");
smooks.getApplicationContext().getStore().addSmooksResourceConfigurationList(configList); } else { throw new SAXException("Binding configuration resolver '" + bindingResolver.getClass().getName() + "' failed to resolve binding configuration for namespace '" + namespace + "'. Resolver must return an InputStream in the InputSource.");