1 | try {↵ | | 1 | try {↵
|
2 | HTTPSamplerBase newUrl = HtmlParsingUtils.createUrlFromAnchor(↵ | | 2 | HTTPSamplerBase newUrl = HtmlParsingUtils.createUrlFromAnchor(↵
|
3 | hrefStr, new URL(result.getURL(), base));↵ | | 3 | hrefStr, new URL(result.getURL(), base));↵
|
4 | newUrl.setMethod(HTTPConstants.GET);↵ | | 4 | newUrl.setMethod(HTTPConstants.GET);↵
|
5 | if (log.isDebugEnabled()) {↵ | | 5 | if (log.isDebugEnabled()) {↵
|
6 | log.debug("Potential <a href> match: " + newUrl);↵ | | 6 | log.debug("Potential <frame src> match: " + newUrl);↵
|
7 | }↵ | | |
|
8 | ↵ | | 7 | }↵
|
9 | if (HtmlParsingUtils.isAnchorMatched(newUrl, config)) {↵ | | 8 | if (HtmlParsingUtils.isAnchorMatched(newUrl, config)) {↵
|
10 | log.debug("Matched!");↵ | | 9 | log.debug("Matched!");↵
|
11 | potentialLinks.add(newUrl);↵ | | 10 | potentialLinks.add(newUrl);↵
|
12 | }↵ | | |
|
13 | ↵ | | 11 | }↵
|
14 | } catch (MalformedURLException e) {↵ | | 12 | } catch (MalformedURLException e) {↵
|
15 | log.warn("Bad URL "+e);↵ | | 13 | log.warn("Bad URL "+e);↵
|
16 | | | 14 |
|