/** * Get a default server engine configuration. * * @return a server EngineConfiguration */ public EngineConfiguration getServerEngineConfig() { return new FileProvider(serverConfigFile); } }
/** * Constructor which accesses a file in the current directory of the * engine or at an absolute path. */ public FileProvider(String filename) { this.filename = filename; configFile = new File(filename); check(); }
/** * Constructor which takes an input stream directly. * Note: The configuration will be read-only in this case! */ public FileProvider(InputStream is) { setInputStream(is); }
public void configureEngine(AxisEngine engine) throws ConfigurationException { try { if (getInputStream() == null) { try { setInputStream(new FileInputStream(configFile)); } catch (Exception e) { if (searchClasspath) setInputStream(ClassUtils.getResourceAsStream(engine.getClass(), filename, true)); } } if (getInputStream() == null) { throw new ConfigurationException( Messages.getMessage("noConfigFile")); } WSDDDocument doc = new WSDDDocument(XMLUtils. newDocument(getInputStream())); deployment = doc.getDeployment(); deployment.configureEngine(engine); engine.refreshGlobalOptions(); setInputStream(null); } catch (Exception e) { throw new ConfigurationException(e); } }
public void configureEngine(AxisEngine engine) throws ConfigurationException { setInputStream(new ByteArrayInputStream(xmlConfiguration.getBytes())); super.configureEngine(engine); } }
public void configureEngine(AxisEngine engine) throws ConfigurationException { try { if (getInputStream() == null) { try { setInputStream(new FileInputStream(configFile)); } catch (Exception e) { if (searchClasspath) setInputStream(ClassUtils.getResourceAsStream(engine.getClass(), filename, true)); } } if (getInputStream() == null) { throw new ConfigurationException( Messages.getMessage("noConfigFile")); } WSDDDocument doc = new WSDDDocument(XMLUtils. newDocument(getInputStream())); deployment = doc.getDeployment(); deployment.configureEngine(engine); engine.refreshGlobalOptions(); setInputStream(null); } catch (Exception e) { throw new ConfigurationException(e); } }
public void configureEngine(AxisEngine engine) throws ConfigurationException { setInputStream(new ByteArrayInputStream(xmlConfiguration.getBytes())); super.configureEngine(engine); } }
/** * Get a default client engine configuration. * * @return a client EngineConfiguration */ public EngineConfiguration getClientEngineConfig() { return new FileProvider(clientConfigFile); }
public void configureEngine(AxisEngine engine) throws ConfigurationException { try { if (getInputStream() == null) { try { setInputStream(new FileInputStream(configFile)); } catch (Exception e) { if (searchClasspath) setInputStream(ClassUtils.getResourceAsStream(engine.getClass(), filename, true)); } } if (getInputStream() == null) { throw new ConfigurationException( Messages.getMessage("noConfigFile")); } WSDDDocument doc = new WSDDDocument(XMLUtils. newDocument(getInputStream())); deployment = doc.getDeployment(); deployment.configureEngine(engine); engine.refreshGlobalOptions(); setInputStream(null); } catch (Exception e) { throw new ConfigurationException(e); } }
/** * Constructor which accesses a file in the current directory of the * engine or at an absolute path. */ public FileProvider(String filename) { this.filename = filename; configFile = new File(filename); check(); }
public void configureEngine(AxisEngine engine) throws ConfigurationException { setInputStream(new ByteArrayInputStream(xmlConfiguration.getBytes())); super.configureEngine(engine); } }
/** * Constructor which takes an input stream directly. * Note: The configuration will be read-only in this case! */ public FileProvider(InputStream is) { setInputStream(is); }
/** * Get a default client engine configuration. * * @return a client EngineConfiguration */ public EngineConfiguration getClientEngineConfig() { return new FileProvider(clientConfigFile); }
/** * Constructor which accesses a file in the current directory of the * engine or at an absolute path. */ public FileProvider(String filename) { this.filename = filename; configFile = new File(filename); check(); }
/** * Constructor which takes an input stream directly. * Note: The configuration will be read-only in this case! */ public FileProvider(InputStream is) { setInputStream(is); }
/** * Get a default server engine configuration. * * @return a server EngineConfiguration */ public EngineConfiguration getServerEngineConfig() { return new FileProvider(serverConfigFile); } }
/** * Constructor which accesses a file relative to a specific base * path. */ public FileProvider(String basepath, String filename) throws ConfigurationException { this.filename = filename; File dir = new File(basepath); /* * If the basepath is not a readable directory, throw an internal * exception to make it easier to debug setup problems. */ if (!dir.exists() || !dir.isDirectory() || !dir.canRead()) { throw new ConfigurationException(Messages.getMessage ("invalidConfigFilePath", basepath)); } configFile = new File(basepath, filename); check(); }
/** * Get a default server engine configuration. * * @return a server EngineConfiguration */ public EngineConfiguration getServerEngineConfig() { return new FileProvider(serverConfigFile); } }
/** * Constructor which accesses a file relative to a specific base * path. */ public FileProvider(String basepath, String filename) throws ConfigurationException { this.filename = filename; File dir = new File(basepath); /* * If the basepath is not a readable directory, throw an internal * exception to make it easier to debug setup problems. */ if (!dir.exists() || !dir.isDirectory() || !dir.canRead()) { throw new ConfigurationException(Messages.getMessage ("invalidConfigFilePath", basepath)); } configFile = new File(basepath, filename); check(); }
/** * Get a default client engine configuration. * * @return a client EngineConfiguration */ public EngineConfiguration getClientEngineConfig() { return new FileProvider(clientConfigFile); }