/** * Parses the content retrieved from some URI and builds a DOM Document * containing information extracted from the response message. Subsidiary * parsers are invoked in accord with the supplied parser instructions. * * @param uc * A URLConnection object. * @param instruction * A Document or Element node containing parser instructions. * @return An Element containing selected info from a URLConnection as * specified by instruction Element and children. */ public Element parse(URLConnection uc, Node instruction) throws Throwable { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); // Fortify Mod: Disable entity expansion to foil External Entity Injections dbf.setExpandEntityReferences(false); DocumentBuilder db = dbf.newDocumentBuilder(); Document response_doc = db.newDocument(); return parse(uc, instruction, response_doc); }
/** * Parses the content retrieved from some URI and builds a DOM Document * containing information extracted from the response message. Subsidiary * parsers are invoked in accord with the supplied parser instructions. * * @param uc * A URLConnection object. * @param instruction * A Document or Element node containing parser instructions. * @return An Element containing selected info from a URLConnection as * specified by instruction Element and children. */ public Element parse(URLConnection uc, Node instruction) throws Throwable { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); // Fortify Mod: Disable entity expansion to foil External Entity Injections dbf.setExpandEntityReferences(false); DocumentBuilder db = dbf.newDocumentBuilder(); Document response_doc = db.newDocument(); return parse(uc, instruction, response_doc); }
Element result = parse(uc, parser_instruction); temp.delete(); return result;
Element result = parse(uc, parser_instruction); temp.delete(); return result;
Element parser = core.formParsers.get(key); URL url = f.toURI().toURL(); Element response = core.parse( url.openConnection(), parser, doc); Element content = DomUtils.getElementByTagName(
Element parser = core.formParsers.get(key); URL url = f.toURI().toURL(); Element response = core.parse( url.openConnection(), parser, doc); Element content = DomUtils.getElementByTagName(
Node parser = select_parser(num, contentType, instruction); Element response_e = core.parse(pc, parser); temp.delete(); Element parser_e = (Element) (response_e LOGR.finer(msg); Element response_e = core.parse(uc, parser); Element parser_e = (Element) (response_e .getElementsByTagName("parser").item(0));
Node parser = select_parser(num, contentType, instruction); Element response_e = core.parse(pc, parser); temp.delete(); Element parser_e = (Element) (response_e LOGR.finer(msg); Element response_e = core.parse(uc, parser); Element parser_e = (Element) (response_e .getElementsByTagName("parser").item(0));
Date before = new Date(); URLConnection uc = build_soap_request(request); response = parse(uc, parserInstruction); Date after = new Date(); elapsedTime = after.getTime() - before.getTime();
Date before = new Date(); URLConnection uc = build_request(request); response = parse(uc, parserInstruction); Date after = new Date(); elapsedTime = after.getTime() - before.getTime();
Date before = new Date(); URLConnection uc = build_soap_request(request); response = parse(uc, parserInstruction); Date after = new Date(); elapsedTime = after.getTime() - before.getTime();
Date before = new Date(); URLConnection uc = build_request(request); response = parse(uc, parserInstruction); Date after = new Date(); elapsedTime = after.getTime() - before.getTime();