documentationStatus.getDocumentationContext());
if (documentationStatus.isEvaluateServletContext()) {
// add server info to the webserver chapter
BoostedNode webserverChapter = documentationStatus
.getTechnicalDocumentationMap().get(WEBSERVER_CHAPTER);
BookUtils.createDiv(webserverChapter, "server info: "
+ servletContext.getServerInfo());
BookUtils.createDiv(webserverChapter, "servlet api: "
+ servletContext.getMajorVersion() + "."
+ servletContext.getMinorVersion());
documentationStatus.setEvaluateServletContext(false);
}
// always add info about the web app to the servlet context
for (Object documentationType : SoftwareDocumentationUtils.SOFTWARE_DOCUMENTATION_TYPES) {
BoostedNode servletContextChapter = documentationStatus
.getDocumentationMap(documentationType).get(
JEEDocumentationUtils.SERVLET_CONTEXT_CHAPTER);
BoostedNode thisContextChapter = null;
if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL
.equals(documentationType)
|| DocumentationResourecesId.DOCUMENTATION_USER
.equals(documentationType)) {
thisContextChapter = BookUtils.createChapter(
servletContextChapter,
servletContext.getServletContextName());
}
if (thisContextChapter != null)
JEEDocumentationUtils.setServletContextChapterNode(
documentationStatus.getDocumentationContext(),
documentationType, servletContext,
thisContextChapter);
if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL
.equals(documentationType)) {
BookUtils.createDiv(thisContextChapter,
"This documentation was created on a server with the following context path: "
+ servletContext.getContextPath());
BoostedNode webxmlChapter = BookUtils.createChapter(
thisContextChapter, "Web.xml");
WebXml webXml = new WebXml(servletContext);
webXml.fillDocumentation(
DocumentationResourecesId.DOCUMENTATION_TECHNICAL,
webxmlChapter,