Skip to content

Commit

Permalink
replace with getChildUrlRules(ResponseData, ResultData)
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Oct 24, 2024
1 parent 9f3f4a9 commit 5950035
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ protected void storeChildUrls(final ResponseData responseData, final ResultData
uri = new URI(responseData.getUrl());
}
final URL url = uri.toURL();
getChildUrlRules().forEach(entry -> {
getChildUrlRules(responseData, resultData).forEach(entry -> {
List<RequestData> requestDataList = new ArrayList<>();
for (final String childUrl : getUrlFromTagAttribute(url, document, entry.getFirst(), entry.getSecond(),
responseData.getCharSet())) {
Expand All @@ -196,7 +196,7 @@ protected void storeChildUrls(final ResponseData responseData, final ResultData
}
}

protected Stream<Pair<String, String>> getChildUrlRules() {
protected Stream<Pair<String, String>> getChildUrlRules(final ResponseData responseData, final ResultData resultData) {
return childUrlRuleMap.entrySet().stream().map(e -> new Pair<>(e.getKey(), e.getValue()));
}

Expand Down

0 comments on commit 5950035

Please sign in to comment.