From 59500351f4eb7436769680ae2481e5727f71b641 Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya Date: Thu, 24 Oct 2024 21:16:00 +0900 Subject: [PATCH] replace with getChildUrlRules(ResponseData, ResultData) --- .../fess/crawler/transformer/impl/HtmlTransformer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java b/fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java index e6cd1307..7eede603 100644 --- a/fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java +++ b/fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java @@ -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 requestDataList = new ArrayList<>(); for (final String childUrl : getUrlFromTagAttribute(url, document, entry.getFirst(), entry.getSecond(), responseData.getCharSet())) { @@ -196,7 +196,7 @@ protected void storeChildUrls(final ResponseData responseData, final ResultData } } - protected Stream> getChildUrlRules() { + protected Stream> getChildUrlRules(final ResponseData responseData, final ResultData resultData) { return childUrlRuleMap.entrySet().stream().map(e -> new Pair<>(e.getKey(), e.getValue())); }