private void addFormUrls(Document html, HTTPSampleResult result, HTTPSamplerBase config, List<HTTPSamplerBase> potentialLinks) { NodeList rootList = html.getChildNodes(); List<HTTPSamplerBase> urls = new LinkedList<>(); for (int x = 0; x < rootList.getLength(); x++) { urls.addAll(HtmlParsingUtils.createURLFromForm(rootList.item(x), result.getURL())); } for (HTTPSamplerBase newUrl : urls) { newUrl.setMethod(HTTPConstants.POST); if (log.isDebugEnabled()) { log.debug("Potential Form match: " + newUrl.toString()); } if (HtmlParsingUtils.isAnchorMatched(newUrl, config)) { log.debug("Matched!"); potentialLinks.add(newUrl); } } }
private void addFormUrls(Document html, HTTPSampleResult result, HTTPSamplerBase config) { NodeList rootList = html.getChildNodes(); List<HTTPSamplerBase> urls = new LinkedList<HTTPSamplerBase>(); for (int x = 0; x < rootList.getLength(); x++) { urls.addAll(HtmlParsingUtils.createURLFromForm(rootList.item(x), result.getURL())); } for (Iterator<HTTPSamplerBase> it = urls.iterator(); it.hasNext();) { HTTPSamplerBase newUrl = it.next(); newUrl.setMethod(HTTPConstants.POST); /* * if (log.isDebugEnabled()) { log.debug("Potential Form match: " + * newUrl.toString()); } * */ if (HtmlParsingUtils.isAnchorMatched(newUrl, config)) { //log.debug("Matched!"); addURL(newUrl); } } }
log.debug("Potential <a href> match: " + newUrl); if (HtmlParsingUtils.isAnchorMatched(newUrl, config)) { log.debug("Matched!"); potentialLinks.add(newUrl);
log.debug("Potential <frame src> match: " + newUrl); if (HtmlParsingUtils.isAnchorMatched(newUrl, config)) { log.debug("Matched!"); potentialLinks.add(newUrl);
if (HtmlParsingUtils.isAnchorMatched(newUrl, config)) {