/** * Sets the configuration file for this manager. * * @param configUri The URI for this manager. */ public void setConfiguration(final String configUri) { try { setConfiguration(new URL(configUri)); } catch (final MalformedURLException e) { getLogger().warn(e.getLocalizedMessage(), e); } }
/** * Sets the configuration file for this manager. * * @param configUri The URI for this manager. */ public void setConfiguration(final String configUri) { try { setConfiguration(new URL(configUri)); } catch (final MalformedURLException e) { getLogger().warn(e.getLocalizedMessage(), e); } }
/** * Sets the configuration file for this manager. * * @param configUri The URI for this manager. */ public void setConfiguration(final String configUri) { try { setConfiguration(new URL(configUri)); } catch (final MalformedURLException e) { getLogger().warn(e.getLocalizedMessage(), e); } }
/** * Sets the configuration file for this manager. * * @param configUri The URI for this manager. */ public void setConfiguration(final String configUri) { try { setConfiguration(new URL(configUri)); } catch (final MalformedURLException e) { getLogger().warn(e.getLocalizedMessage(), e); } }
/** * Configures this manager from an XML configuration file. * * @param configUri The URI of the configuration. * @throws FileSystemException if an error occus. */ private void configure(final URL configUri) throws FileSystemException { InputStream configStream = null; try { // Load up the config // TODO - validate final DocumentBuilder builder = createDocumentBuilder(); configStream = configUri.openStream(); final Element config = builder.parse(configStream).getDocumentElement(); configure(config); } catch (final Exception e) { throw new FileSystemException("vfs.impl/load-config.error", configUri.toString(), e); } finally { if (configStream != null) { try { configStream.close(); } catch (final IOException e) { getLogger().warn(e.getLocalizedMessage(), e); } } } }
/** * Configures this manager from an XML configuration file. * * @param configUri The URI of the configuration. * @throws FileSystemException if an error occus. */ private void configure(final URL configUri) throws FileSystemException { InputStream configStream = null; try { // Load up the config // TODO - validate final DocumentBuilder builder = createDocumentBuilder(); configStream = configUri.openStream(); final Element config = builder.parse(configStream).getDocumentElement(); configure(config); } catch (final Exception e) { throw new FileSystemException("vfs.impl/load-config.error", configUri.toString(), e); } finally { if (configStream != null) { try { configStream.close(); } catch (final IOException e) { getLogger().warn(e.getLocalizedMessage(), e); } } } }
/** * Configures this manager from an XML configuration file. * * @param configUri The URI of the configuration. * @throws FileSystemException if an error occus. */ private void configure(final URL configUri) throws FileSystemException { InputStream configStream = null; try { // Load up the config // TODO - validate final DocumentBuilder builder = createDocumentBuilder(); configStream = configUri.openStream(); final Element config = builder.parse(configStream).getDocumentElement(); configure(config); } catch (final Exception e) { throw new FileSystemException("vfs.impl/load-config.error", configUri.toString(), e); } finally { if (configStream != null) { try { configStream.close(); } catch (final IOException e) { getLogger().warn(e.getLocalizedMessage(), e); } } } }
getLogger().warn(e.getLocalizedMessage(), e);
final String msg = Messages.getString("vfs.impl/skipping-provider-scheme.debug", classname, requiredScheme); VfsLog.debug(getLogger(), getLogger(), msg); return; if (!findClass(requiredClass)) { final String msg = Messages.getString("vfs.impl/skipping-provider.debug", classname, requiredClass); VfsLog.debug(getLogger(), getLogger(), msg); return;
final String msg = Messages.getString("vfs.impl/skipping-provider-scheme.debug", classname, requiredScheme); VfsLog.debug(getLogger(), getLogger(), msg); return; if (!findClass(requiredClass)) { final String msg = Messages.getString("vfs.impl/skipping-provider.debug", classname, requiredClass); VfsLog.debug(getLogger(), getLogger(), msg); return;
final String msg = Messages.getString("vfs.impl/skipping-provider-scheme.debug", classname, requiredScheme); VfsLog.debug(getLogger(), getLogger(), msg); return; if (!findClass(requiredClass)) { final String msg = Messages.getString("vfs.impl/skipping-provider.debug", classname, requiredClass); VfsLog.debug(getLogger(), getLogger(), msg); return;