MCPcopy Index your code
hub / github.com/apache/tomcat / completeWebXml

Method completeWebXml

java/org/apache/jasper/JspC.java:1709–1726  ·  view source on GitHub ↗

Writes the accumulated servlet declarations and mappings to the web.xml output, then closes the writer.

()

Source from the content-addressed store, hash-verified

1707 * then closes the writer.
1708 */
1709 protected void completeWebXml() {
1710 if (mapout != null) {
1711 try {
1712 servletout.writeTo(mapout);
1713 mappingout.writeTo(mapout);
1714 if (webxmlLevel >= ALL_WEBXML) {
1715 mapout.write(Localizer.getMessage("jspc.webxml.footer"));
1716 } else if (webxmlLevel >= FRG_WEBXML) {
1717 mapout.write(Localizer.getMessage("jspc.webfrg.footer"));
1718 } else if ((webxmlLevel >= INC_WEBXML) && !addWebXmlMappings) {
1719 mapout.write(Localizer.getMessage("jspc.webinc.footer"));
1720 }
1721 mapout.close();
1722 } catch (IOException ignore) {
1723 // Nothing to do if it fails since we are done with it.
1724 }
1725 }
1726 }
1727
1728
1729 /**

Callers 1

executeMethod · 0.95

Calls 4

getMessageMethod · 0.95
writeToMethod · 0.80
writeMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected