Examples of parseInput()


Examples of com.denimgroup.threadfix.importer.interop.ChannelImporter.parseInput()

    log.info("Processing file " + fileName + " on channel "
        + applicationChannel.getChannelType().getName() + ".");
 
    importer.setFileName(fileName);
   
    Scan scan = importer.parseInput();
   
    if (scan == null) {
      log.warn("The " + applicationChannel.getChannelType().getName()
          + " import failed for file " + fileName + ".");
      return null;
View Full Code Here

Examples of com.denimgroup.threadfix.importer.interop.ChannelImporter.parseInput()

    public Scan getScan(ScannerType type, File inputFile) {
        ChannelImporter importer = getImporter(type);

        importer.setFileName(inputFile.getAbsolutePath());

        return importer.parseInput();
    }

    @Autowired
    protected ChannelVulnerabilityDao channelVulnerabilityDao;
    @Autowired
View Full Code Here

Examples of com.denimgroup.threadfix.service.waflog.WafLogParser.parseInput()

      parser.setFile(fileAsMultipartFile);
    }
   
    log.info("About to parse " + waf.getWafType().getName() + " log file.");
   
    List<SecurityEvent> events = parser.parseInput();
   
    if (events.size() != 0) {
      log.info("Found " + events.size() + " security events in the " + waf.getWafType().getName() + " log.");
    } else {
      log.warn("Found no security events in the " + waf.getWafType().getName() + " log.");
View Full Code Here

Examples of com.salesforce.ide.core.model.ProjectPackage.parseInput()

                SObject[] sobjects = result.getRecords();
                if (Utils.isNotEmpty(sobjects)) {
                    for (SObject sobject : sobjects) {
                        ProjectPackage projectPackage = getProjectPackageInstance();
                        projectPackage.setOrgId(connection.getOrgId());
                        projectPackage.parseInput(sobject);
                        projectPackageList.add(projectPackage);
                    }
                }
                if (logger.isDebugEnabled()) {
                    logger.debug(projectPackageList.isEmpty() ? "No project packages assembled" : projectPackageList
View Full Code Here

Examples of org.jsoup.parser.Parser.parseInput()

                "  </table> \n" +
                " </div> \n" +
                "</body>";
        Parser parser = Parser.htmlParser();
        parser.setTrackErrors(100);
        Document document = parser.parseInput(htmlWithDivUnclosed, "");
        List<ParseError> errors = parser.getErrors();
        System.out.println(errors);

    }
}
View Full Code Here

Examples of org.jsoup.parser.Parser.parseInput()

                "   </tbody> \n" +
                "  </table> \n" +
                " </div> \n" +
                "</body>";
        Parser parser = Parser.htmlParser();
        Document document = parser.parseInput(html, "");
        Elements select = document.select("body div");
        System.out.println(select);
    }
}
View Full Code Here

Examples of org.jsoup.parser.Parser.parseInput()

    public static List<ParseError> check(String url) throws IOException {
        Parser parser = Parser.htmlParser();
        parser.setTrackErrors(100);
        String body = Jsoup.connect(url).userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36")
                .execute().body();
        parser.parseInput(body, url);
        List<ParseError> errors = parser.getErrors();
        return errors;
    }

    public static void main(String[] args) throws IOException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.