}
catch (DocumentException de) {
Logger.error(WebSiteBuilder.class,de.getMessage(),de);
}
Element root = doc.getRootElement();
List webSites = new ArrayList();
Iterator itr = root.elements("web-site").iterator();
while (itr.hasNext()) {
Element webSite = (Element)itr.next();
String id = webSite.attributeValue("id");
boolean httpEnabled = GetterUtil.getBoolean(
webSite.attributeValue("http-enabled"), true);
String keystore = GetterUtil.getString(
webSite.attributeValue("keystore"));
String keystorePassword = GetterUtil.getString(
webSite.attributeValue("keystore-password"));
String virtualHosts = GetterUtil.getString(
webSite.attributeValue("virtual-hosts"));
String forwardURL = GetterUtil.getString(
webSite.attributeValue("forward-url"), "/c");
webSites.add(
new WebSite(
id, httpEnabled, keystore, keystorePassword, virtualHosts,
forwardURL));