/** * Configures some well-known properties before the XmlConfiguration reads * the configuration. * @param jetty_config The configuration object. * @param web_inf the WEB-INF location */ private void setupXmlConfiguration(WebAppContext context, XmlConfiguration jetty_config, Resource web_inf) throws IOException { jetty_config.setJettyStandardIdsAndProperties(context.getServer(),null); Map<String,String> props = jetty_config.getProperties(); props.put(PROPERTY_THIS_WEB_INF_URL, web_inf.getURI().toString()); props.put(PROPERTY_WEB_INF_URI, XmlConfiguration.normalizeURI(web_inf.getURI().toString())); props.put(PROPERTY_WEB_INF, web_inf.toString()); } }
if (properties.size()>0) { Map foo = configuration.getProperties(); foo.putAll(properties);
/** * Configures some well-known properties before the XmlConfiguration reads * the configuration. * @param jetty_config The configuration object. * @param web_inf the WEB-INF location */ private void setupXmlConfiguration(XmlConfiguration jetty_config, Resource web_inf) { Map<String,String> props = jetty_config.getProperties(); // TODO - should this be an id rather than a property? props.put(PROPERTY_THIS_WEB_INF_URL, String.valueOf(web_inf.getURL())); } }
/** * Configures some well-known properties before the XmlConfiguration reads * the configuration. * @param jetty_config The configuration object. * @param web_inf the WEB-INF location */ private void setupXmlConfiguration(XmlConfiguration jetty_config, Resource web_inf) { Map<String,String> props = jetty_config.getProperties(); // TODO - should this be an id rather than a property? props.put(PROPERTY_THIS_WEB_INF_URL, String.valueOf(web_inf.getURL())); } }
/** * Configures some well-known properties before the XmlConfiguration reads * the configuration. * @param jetty_config The configuration object. */ private void setupXmlConfiguration(XmlConfiguration jetty_config, Resource web_inf) { Map<String,String> props = jetty_config.getProperties(); if (props == null) { props = new HashMap<String, String>(); jetty_config.setProperties(props); } // TODO - should this be an id rather than a property? props.put(PROPERTY_THIS_WEB_INF_URL, String.valueOf(web_inf.getURL())); } }
/** * Configures some well-known properties before the XmlConfiguration reads * the configuration. * @param jetty_config The configuration object. */ private void setupXmlConfiguration(XmlConfiguration jetty_config, Resource web_inf) { Map<String,String> props = jetty_config.getProperties(); if (props == null) { props = new HashMap<String, String>(); jetty_config.setProperties(props); } // TODO - should this be an id rather than a property? props.put(PROPERTY_THIS_WEB_INF_URL, String.valueOf(web_inf.getURL())); } }
/** * Configures some well-known properties before the XmlConfiguration reads * the configuration. * @param jetty_config The configuration object. */ private void setupXmlConfiguration(XmlConfiguration jetty_config, Resource web_inf) { Map<String,String> props = jetty_config.getProperties(); if (props == null) { props = new HashMap<String, String>(); jetty_config.setProperties(props); } // TODO - should this be an id rather than a property? props.put(PROPERTY_THIS_WEB_INF_URL, String.valueOf(web_inf.getURL())); } }
/** * Configures some well-known properties before the XmlConfiguration reads * the configuration. * @param jetty_config The configuration object. * @param web_inf the WEB-INF location */ private void setupXmlConfiguration(WebAppContext context, XmlConfiguration jetty_config, Resource web_inf) throws IOException { jetty_config.setJettyStandardIdsAndProperties(context.getServer(),null); Map<String,String> props = jetty_config.getProperties(); props.put(PROPERTY_THIS_WEB_INF_URL, web_inf.getURI().toString()); props.put(PROPERTY_WEB_INF_URI, XmlConfiguration.normalizeURI(web_inf.getURI().toString())); props.put(PROPERTY_WEB_INF, web_inf.toString()); } }
getProperties().put("jetty.home",home.toString()); getProperties().put("jetty.home.uri",normalizeURI(home.toUri().toASCIIString())); getProperties().put("jetty.base",base.toString()); getProperties().put("jetty.base.uri",normalizeURI(base.toUri().toASCIIString())); getProperties().put("jetty.webapp", webappPath.toString()); getProperties().put("jetty.webapps", webappPath.getParent().toString()); getProperties().put("jetty.webapps.uri", normalizeURI(webapp.getURI().toString()));
private Object propertyObj(XmlParser.Node node) throws Exception { String id = node.getAttribute("id"); String name = node.getAttribute("name"); String defaultValue = node.getAttribute("default"); Object prop; Map<String,String> property_map=_configuration.getProperties(); if (property_map != null && property_map.containsKey(name)) prop = property_map.get(name); else prop = defaultValue; if (id != null) _configuration.getIdMap().put(id,prop); if (prop != null) configure(prop,node,0); return prop; }
private Object propertyObj(XmlParser.Node node) throws Exception { String id = node.getAttribute("id"); String name = node.getAttribute("name"); String defaultValue = node.getAttribute("default"); Object prop; Map<String,String> property_map=_configuration.getProperties(); if (property_map != null && property_map.containsKey(name)) prop = property_map.get(name); else prop = defaultValue; if (id != null) _configuration.getIdMap().put(id,prop); if (prop != null) configure(prop,node,0); return prop; }
private Object propertyObj(XmlParser.Node node) throws Exception { String id = node.getAttribute("id"); String name = node.getAttribute("name"); String defaultValue = node.getAttribute("default"); Object prop; Map<String,String> property_map=_configuration.getProperties(); if (property_map != null && property_map.containsKey(name)) prop = property_map.get(name); else prop = defaultValue; if (id != null) _configuration.getIdMap().put(id,prop); if (prop != null) configure(prop,node,0); return prop; }
configuration.getProperties().putAll(props);
@SuppressWarnings("unchecked") protected void initialiseFromConfigFile() throws InitialisationException { if (configFile == null) { return; } try { InputStream is = IOUtils.getResourceAsStream(configFile, getClass()); XmlConfiguration config = new XmlConfiguration(is); String appHome = muleContext.getRegistry().lookupObject(MuleProperties.APP_HOME_DIRECTORY_PROPERTY); if (appHome == null) { // Mule IDE sets app.home as part of the launch config it creates appHome = System.getProperty(MuleProperties.APP_HOME_DIRECTORY_PROPERTY); } if (appHome != null) { config.getProperties().put(MuleProperties.APP_HOME_DIRECTORY_PROPERTY, appHome); } config.configure(httpServer); } catch (Exception e) { throw new InitialisationException(e, this); } }
private void doConfigure() _beanFactory.registerSingleton("properties", _configuration.getProperties());
File file = resource.getFile(); jettyXmlConfig.getIdMap().put("Server",app.getDeploymentManager().getServer()); jettyXmlConfig.getProperties().put("jetty.webapp",file.getCanonicalPath()); jettyXmlConfig.getProperties().put("jetty.webapps",file.getParentFile().getCanonicalPath());
File file = resource.getFile(); jettyXmlConfig.getIdMap().put("Server",app.getDeploymentManager().getServer()); jettyXmlConfig.getProperties().put("jetty.webapp",file.getCanonicalPath()); jettyXmlConfig.getProperties().put("jetty.webapps",file.getParentFile().getCanonicalPath());
Map<String,String> properties = _configuration.getProperties(); String value = properties.get(name);
xmlc.getProperties().putAll(getConfigurationManager().getProperties()); return (ContextHandler)xmlc.configure();
xmlConfiguration.getIdMap().put("Server", _contexts.getServer()); if (_configMgr!=null) xmlConfiguration.getProperties().putAll(_configMgr.getProperties());