/** * 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())); } }
xmlConfiguration.setProperties(properties); ContextHandler context = (ContextHandler) xmlConfiguration.configure();