test_class.file: webapp/webxml/src/test/java/cloud/piranha/webapp/webxml/WebXmlParserTest.java
test_class.identifier: WebXmlParserTest
test_case.body: @Test
      void testParseWebXml2() throws Exception {
          DefaultWebApplication webApplication = new DefaultWebApplication();
          webApplication.addResource(new DirectoryResource(new File("src/test/webxml/parse2")));
          InputStream inputStream = webApplication.getResourceAsStream("WEB-INF/web.xml");
          WebXmlParser parser = new WebXmlParser();
          WebXml webXml = parser.parse(inputStream);
          assertNotEquals("/defaultContextPath", webXml.getDefaultContextPath());
          assertFalse(webXml.getDenyUncoveredHttpMethods());
          assertNotEquals("myServletContextName", webXml.getDisplayName());
          assertFalse(webXml.isDistributable());
          assertNotEquals("UTF-8", webXml.getResponseCharacterEncoding());
      }
test_case.class_method_signature: WebXmlParserTest.testParseWebXml2()
test_case.full_signature: @Test void testParseWebXml2()
test_case.identifier: testParseWebXml2
test_case.invocations: addResource getResourceAsStream parse assertNotEquals getDefaultContextPath assertFalse getDenyUncoveredHttpMethods assertNotEquals getDisplayName assertFalse isDistributable assertNotEquals getResponseCharacterEncoding
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseWebXml2()
focal_class.declarator: LOGGER = Logger.getLogger(WebXmlParser.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(WebXmlParser.class.getName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: webapp/webxml/src/main/java/cloud/piranha/webapp/webxml/WebXmlParser.java
focal_class.identifier: WebXmlParser
focal_class.class_method_signature: WebXmlParser.parse(InputStream inputStream)
focal_class.full_signature: public WebXml parse(InputStream inputStream)
focal_class.identifier: parse
focal_class.modifiers: public
focal_class.parameters: (InputStream inputStream)
focal_class.return: WebXml
focal_class.signature: WebXml parse(InputStream inputStream)
focal_class.class_method_signature: WebXmlParser.parseFragmentName(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseFragmentName(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseFragmentName
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseFragmentName(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseAbsoluteOrdering(WebXml webXml, XPath xPath, Node rootNode)
focal_class.full_signature: private void parseAbsoluteOrdering(WebXml webXml, XPath xPath, Node rootNode)
focal_class.identifier: parseAbsoluteOrdering
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node rootNode)
focal_class.return: void
focal_class.signature: void parseAbsoluteOrdering(WebXml webXml, XPath xPath, Node rootNode)
focal_class.class_method_signature: WebXmlParser.parseOrdering(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseOrdering(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseOrdering
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseOrdering(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseOrderingChildren(XPath xPath, NodeList orderingChild)
focal_class.full_signature: private List<String> parseOrderingChildren(XPath xPath, NodeList orderingChild)
focal_class.identifier: parseOrderingChildren
focal_class.modifiers: private
focal_class.parameters: (XPath xPath, NodeList orderingChild)
focal_class.return: List<String>
focal_class.signature: List<String> parseOrderingChildren(XPath xPath, NodeList orderingChild)
focal_class.class_method_signature: WebXmlParser.parseBoolean(XPath xPath, String expression, Node node)
focal_class.full_signature: private static Boolean parseBoolean(XPath xPath, String expression, Node node)
focal_class.identifier: parseBoolean
focal_class.modifiers: private static
focal_class.parameters: (XPath xPath, String expression, Node node)
focal_class.return: Boolean
focal_class.signature: Boolean parseBoolean(XPath xPath, String expression, Node node)
focal_class.class_method_signature: WebXmlParser.parseContextParameters(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseContextParameters(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseContextParameters
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseContextParameters(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseDenyUncoveredHttpMethods(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseDenyUncoveredHttpMethods(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseDenyUncoveredHttpMethods
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseDenyUncoveredHttpMethods(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseDefaultContextPath(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseDefaultContextPath(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseDefaultContextPath
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseDefaultContextPath(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseDisplayName(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseDisplayName(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseDisplayName
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseDisplayName(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseDistributable(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseDistributable(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseDistributable
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseDistributable(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseErrorPages(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseErrorPages(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseErrorPages
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseErrorPages(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseFilterMappings(WebXml webXml, XPath xPath, Node rootNode)
focal_class.full_signature: private void parseFilterMappings(WebXml webXml, XPath xPath, Node rootNode)
focal_class.identifier: parseFilterMappings
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node rootNode)
focal_class.return: void
focal_class.signature: void parseFilterMappings(WebXml webXml, XPath xPath, Node rootNode)
focal_class.class_method_signature: WebXmlParser.parseFilters(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseFilters(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseFilters
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseFilters(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseInteger(XPath xPath, String expression, Node node)
focal_class.full_signature: private int parseInteger(XPath xPath, String expression, Node node)
focal_class.identifier: parseInteger
focal_class.modifiers: private
focal_class.parameters: (XPath xPath, String expression, Node node)
focal_class.return: int
focal_class.signature: int parseInteger(XPath xPath, String expression, Node node)
focal_class.class_method_signature: WebXmlParser.parseListeners(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseListeners(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseListeners
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseListeners(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseLoginConfig(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseLoginConfig(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseLoginConfig
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseLoginConfig(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseMimeMappings(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseMimeMappings(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseMimeMappings
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseMimeMappings(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseRequestCharacterEncoding(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseRequestCharacterEncoding(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseRequestCharacterEncoding
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseRequestCharacterEncoding(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseResponseCharacterEncoding(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseResponseCharacterEncoding(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseResponseCharacterEncoding
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseResponseCharacterEncoding(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.processSecurityConstraints(WebXml webXml, XPath xPath, Node rootNode)
focal_class.full_signature: private void processSecurityConstraints(WebXml webXml, XPath xPath, Node rootNode)
focal_class.identifier: processSecurityConstraints
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node rootNode)
focal_class.return: void
focal_class.signature: void processSecurityConstraints(WebXml webXml, XPath xPath, Node rootNode)
focal_class.class_method_signature: WebXmlParser.processSecurityConstraint(WebXml webXml, XPath xPath, Node rootNode)
focal_class.full_signature: private void processSecurityConstraint(WebXml webXml, XPath xPath, Node rootNode)
focal_class.identifier: processSecurityConstraint
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node rootNode)
focal_class.return: void
focal_class.signature: void processSecurityConstraint(WebXml webXml, XPath xPath, Node rootNode)
focal_class.class_method_signature: WebXmlParser.processSecurityRoles(WebXml webXml, XPath xPath, Node rootNode)
focal_class.full_signature: private void processSecurityRoles(WebXml webXml, XPath xPath, Node rootNode)
focal_class.identifier: processSecurityRoles
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node rootNode)
focal_class.return: void
focal_class.signature: void processSecurityRoles(WebXml webXml, XPath xPath, Node rootNode)
focal_class.class_method_signature: WebXmlParser.parseServletMappings(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseServletMappings(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseServletMappings
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseServletMappings(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseServlets(WebXml webXml, XPath xPath, Node rootNode)
focal_class.full_signature: private void parseServlets(WebXml webXml, XPath xPath, Node rootNode)
focal_class.identifier: parseServlets
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node rootNode)
focal_class.return: void
focal_class.signature: void parseServlets(WebXml webXml, XPath xPath, Node rootNode)
focal_class.class_method_signature: WebXmlParser.parseSessionConfig(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseSessionConfig(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseSessionConfig
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseSessionConfig(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseWebApp(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseWebApp(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseWebApp
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseWebApp(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseString(XPath xPath, String expression, Node node)
focal_class.full_signature: private String parseString(XPath xPath, String expression, Node node)
focal_class.identifier: parseString
focal_class.modifiers: private
focal_class.parameters: (XPath xPath, String expression, Node node)
focal_class.return: String
focal_class.signature: String parseString(XPath xPath, String expression, Node node)
focal_class.class_method_signature: WebXmlParser.parseNodes(XPath xPath, String expression, Node node)
focal_class.full_signature: private Iterable<Node> parseNodes(XPath xPath, String expression, Node node)
focal_class.identifier: parseNodes
focal_class.modifiers: private
focal_class.parameters: (XPath xPath, String expression, Node node)
focal_class.return: Iterable<Node>
focal_class.signature: Iterable<Node> parseNodes(XPath xPath, String expression, Node node)
focal_class.class_method_signature: WebXmlParser.parseStrings(XPath xPath, String expression, Node node)
focal_class.full_signature: private Iterable<String> parseStrings(XPath xPath, String expression, Node node)
focal_class.identifier: parseStrings
focal_class.modifiers: private
focal_class.parameters: (XPath xPath, String expression, Node node)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> parseStrings(XPath xPath, String expression, Node node)
focal_class.class_method_signature: WebXmlParser.toIterable(NodeList nodes)
focal_class.full_signature: public static Iterable<Node> toIterable(NodeList nodes)
focal_class.identifier: toIterable
focal_class.modifiers: public static
focal_class.parameters: (NodeList nodes)
focal_class.return: Iterable<Node>
focal_class.signature: Iterable<Node> toIterable(NodeList nodes)
focal_class.class_method_signature: WebXmlParser.parseWelcomeFiles(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseWelcomeFiles(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseWelcomeFiles
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseWelcomeFiles(WebXml webXml, XPath xPath, Node node)
focal_class.class_method_signature: WebXmlParser.parseLocaleEncodingMapping(WebXml webXml, XPath xPath, Node node)
focal_class.full_signature: private void parseLocaleEncodingMapping(WebXml webXml, XPath xPath, Node node)
focal_class.identifier: parseLocaleEncodingMapping
focal_class.modifiers: private
focal_class.parameters: (WebXml webXml, XPath xPath, Node node)
focal_class.return: void
focal_class.signature: void parseLocaleEncodingMapping(WebXml webXml, XPath xPath, Node node)
focal_method.body: public WebXml parse(InputStream inputStream) {
          WebXml webXml = new WebXml();
          try {
              DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
              Document document = documentBuilder.parse(inputStream);
              XPath xPath = XPathFactory.newInstance().newXPath();
              parseAbsoluteOrdering(webXml, xPath, document);
              parseOrdering(webXml, xPath, document);
              parseContextParameters(webXml, xPath, document);
              parseDefaultContextPath(webXml, xPath, document);
              parseDenyUncoveredHttpMethods(webXml, xPath, document);
              parseDisplayName(webXml, xPath, document);
              parseFragmentName(webXml, xPath, document);
              parseDistributable(webXml, xPath, document);
              parseErrorPages(webXml, xPath, document);
              parseFilterMappings(webXml, xPath, document);
              parseFilters(webXml, xPath, document);
              parseListeners(webXml, xPath, document);
              parseLoginConfig(webXml, xPath, document);
              parseMimeMappings(webXml, xPath, document);
              parseRequestCharacterEncoding(webXml, xPath, document);
              parseResponseCharacterEncoding(webXml, xPath, document);
              parseLocaleEncodingMapping(webXml, xPath, document);
              processSecurityConstraints(webXml, xPath, document);
              processSecurityRoles(webXml, xPath, document);
              parseServletMappings(webXml, xPath, document);
              parseServlets(webXml, xPath, document);
              parseSessionConfig(webXml, xPath, document);
              parseWebApp(webXml, xPath, document);
              parseWelcomeFiles(webXml, xPath, document);
          } catch (Throwable t) {
              LOGGER.log(WARNING, "Unable to parse web.xml", t);
          }
          return webXml;
      }
focal_method.class_method_signature: WebXmlParser.parse(InputStream inputStream)
focal_method.full_signature: public WebXml parse(InputStream inputStream)
focal_method.identifier: parse
focal_method.invocations: newDocumentBuilder newInstance parse newXPath newInstance parseAbsoluteOrdering parseOrdering parseContextParameters parseDefaultContextPath parseDenyUncoveredHttpMethods parseDisplayName parseFragmentName parseDistributable parseErrorPages parseFilterMappings parseFilters parseListeners parseLoginConfig parseMimeMappings parseRequestCharacterEncoding parseResponseCharacterEncoding parseLocaleEncodingMapping processSecurityConstraints processSecurityRoles parseServletMappings parseServlets parseSessionConfig parseWebApp parseWelcomeFiles log
focal_method.modifiers: public
focal_method.parameters: (InputStream inputStream)
focal_method.return: WebXml
focal_method.signature: WebXml parse(InputStream inputStream)