Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for contentLengthHelper (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

        public static final String FS_FILE_GROUPS = "fsFileGroups";
    
        protected String charset = Constants.UTF_8;
    
        @Resource
        protected ContentLengthHelper contentLengthHelper;
    
        protected AtomicBoolean isInit = new AtomicBoolean(false);
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.client.CrawlerClient#doGet(java.lang.String)
         */
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. 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)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

        public static final String SMB_OWNER_ATTRIBUTES = "smbOwnerAttributes";
    
        protected String charset = Constants.UTF_8;
    
        protected boolean resolveSids = true;
    
        @Resource
        protected ContentLengthHelper contentLengthHelper;
    
        protected volatile SmbAuthenticationHolder smbAuthenticationHolder;
    
        protected CIFSContext cifsContext;
    
        @Override
        public synchronized void init() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

        public static final String FTP_AUTHENTICATIONS_PROPERTY = "ftpAuthentications";
    
        protected String charset = Constants.UTF_8;
    
        @Resource
        protected ContentLengthHelper contentLengthHelper;
    
        protected volatile FtpAuthenticationHolder ftpAuthenticationHolder;
    
        protected FTPClientConfig ftpClientConfig;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  9. 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)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/storage/StorageClient.java

        private static final Logger logger = LoggerFactory.getLogger(StorageClient.class);
    
        protected String charset = Constants.UTF_8;
    
        @Resource
        protected ContentLengthHelper contentLengthHelper;
    
        protected AtomicBoolean isInit = new AtomicBoolean(false);
    
        protected MinioClient minioClient;
    
        @Override
        public void init() {
            super.init();
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top