- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ContentLengthHelper (0.27 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java
import java.util.HashMap; import java.util.Map; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.crawler.exception.CrawlerSystemException; /** * @author shinsuke * */ public class ContentLengthHelper { protected long defaultMaxLength = 10L * 1024L * 1024L;// 10M protected Map<String, Long> maxLengthMap = new HashMap<>(); public void addMaxLength(final String mimeType, final long maxLength) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 1.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/ContentLengthHelperTest.java
public ContentLengthHelper contentLengthHelper; @Override protected void setUp() throws Exception { super.setUp(); StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("contentLengthHelper", ContentLengthHelper.class); contentLengthHelper = container.getComponent("contentLengthHelper"); } public void test_getMaxLength() {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java
} if (maxContentLength < 0) { final ContentLengthHelper contentLengthHelper = crawlerContainer.getComponent("contentLengthHelper"); maxContentLength = contentLengthHelper.getMaxLength(mimeType); } final long contentLength = getContentLength(out); if (contentLength > maxContentLength) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 6.3K bytes - Viewed (0) -
src/main/resources/crawler/contentlength.xml
"http://dbflute.org/meta/lastadi10.dtd"> <components namespace="fessCrawler"> <include path="crawler/container.xml" /> <component name="contentLengthHelper" class="org.codelibs.fess.crawler.helper.ContentLengthHelper" instance="singleton"> <property name="defaultMaxLength">10485760</property><!-- 10M --> <postConstruct name="addMaxLength"> <arg>"text/html"</arg> <arg>2621440</arg><!-- 2.5M -->
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sun Oct 11 06:51:14 UTC 2015 - 561 bytes - Viewed (0) -
fess-crawler-lasta/src/main/resources/crawler/contentlength.xml
"http://dbflute.org/meta/lastadi10.dtd"> <components namespace="fessCrawler"> <include path="crawler/container.xml" /> <component name="contentLengthHelper" class="org.codelibs.fess.crawler.helper.ContentLengthHelper" instance="singleton"> </component>
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sun Oct 11 02:16:55 UTC 2015 - 375 bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/ExtractorFactoryTest.java
.singleton("lhaExtractor", LhaExtractor.class)// .singleton("mimeTypeHelper", MimeTypeHelperImpl.class)// .singleton("contentLengthHelper", ContentLengthHelper.class)// .singleton("extractorFactory", ExtractorFactory.class); extractorFactory = container.getComponent("extractorFactory");
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Tue Jun 18 05:49:13 UTC 2024 - 6.5K bytes - Viewed (0)