webBundleDescriptor.getWebComponentByCanonicalName("default");
InitializationParameter listingsParam = getDefaultServletInitParam(
defaultServletDesc, "listings", false);
InitializationParameter sortedByParam = getDefaultServletInitParam(
defaultServletDesc, "sortedBy", false);
ClassLoader clBean = webBundleDescriptor.getSunDescriptor().getClassLoader();
containerDescriptorNode = appendChild(root, RuntimeTagNames.CONTAINER_DESCRIPTOR);
if (listingsParam != null) {
appendTextChild(containerDescriptorNode,
RuntimeTagNames.INDEX_DIRECTORY_ENALBED, listingsParam.getValue());
}
if (sortedByParam != null) {
appendTextChild(containerDescriptorNode,
RuntimeTagNames.INDEX_DIRECTORY_SORT_BY, sortedByParam.getValue());
}
appendTextChild(containerDescriptorNode, RuntimeTagNames.SAVE_SESSIONS_ENABLED,
Boolean.toString(webBundleDescriptor.getKeepState()));
if (clBean != null) {
appendTextChild(containerDescriptorNode,
RuntimeTagNames.PREFER_WEB_INF_CLASSES,
clBean.getAttributeValue(ClassLoader.DELEGATE));
}
return containerDescriptorNode;
}