private static void createProxyServices(SynapseConfiguration synapseConfig, String rootDirPath, Properties properties) { File proxyServicesDir = new File(rootDirPath, PROXY_SERVICES_DIR); if (proxyServicesDir.exists()) { if (log.isDebugEnabled()) { log.debug("Loading proxy services from : " + proxyServicesDir.getPath()); } Iterator proxyDefinitions = FileUtils.iterateFiles(proxyServicesDir, extensions, false); while (proxyDefinitions.hasNext()) { File file = (File) proxyDefinitions.next(); OMElement document = null; try { document = getOMElement(file); } catch (Exception e) { String msg = "Error while building Proxy service configuration from file : " + file.getName(); handleConfigurationError(SynapseConstants.FAIL_SAFE_MODE_PROXY_SERVICES, msg, e); } if (document != null) { ProxyService proxy = SynapseXMLConfigurationFactory.defineProxy(synapseConfig, document, properties); if (proxy != null) { proxy.setFileName(file.getName()); synapseConfig.getArtifactDeploymentStore().addArtifact( file.getAbsolutePath(), proxy.getName()); } } } } }
private static void createProxyServices(SynapseConfiguration synapseConfig, String rootDirPath, Properties properties) { File proxyServicesDir = new File(rootDirPath, PROXY_SERVICES_DIR); if (proxyServicesDir.exists()) { if (log.isDebugEnabled()) { log.debug("Loading proxy services from : " + proxyServicesDir.getPath()); } Iterator proxyDefinitions = FileUtils.iterateFiles(proxyServicesDir, extensions, false); while (proxyDefinitions.hasNext()) { File file = (File) proxyDefinitions.next(); try { OMElement document = getOMElement(file); ProxyService proxy = SynapseXMLConfigurationFactory.defineProxy(synapseConfig, document, properties); if (proxy != null) { proxy.setFileName(file.getName()); synapseConfig.getArtifactDeploymentStore().addArtifact( file.getAbsolutePath(), proxy.getName()); } } catch (Exception e) { String msg = "Proxy configuration cannot be built from : " + file.getName(); handleConfigurationError(SynapseConstants.FAIL_SAFE_MODE_PROXY_SERVICES, msg, e); } } } }
ProxyService proxy = ProxyServiceFactory.createProxy(artifactConfig, properties); if (proxy != null) { proxy.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("ProxyService named '" + proxy.getName()
ProxyService proxy = ProxyServiceFactory.createProxy(artifactConfig, properties); if (proxy != null) { proxy.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("ProxyService named '" + proxy.getName()
if (proxy != null) { proxy.setLogSetterValue(); proxy.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("ProxyService named '" + proxy.getName()
proxy.setFileName(proxyFile.getName()); proxy.setFilePath(proxyFile.toURI().toURL());