Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for contentLengthHelper (0.96 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: Wed Jun 12 15:17:51 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: Wed Jun 12 15:17:51 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: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Mar 14 13:56:25 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. 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: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                    }
                }
            }));
        }
    
        protected String charset = Constants.UTF_8;
    
        protected boolean resolveSids = true;
    
        @Resource
        protected ContentLengthHelper contentLengthHelper;
    
        protected volatile SmbAuthenticationHolder smbAuthenticationHolder;
    
        @Override
        public synchronized void init() {
            if (smbAuthenticationHolder != null) {
                return;
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. 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: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu May 23 01:54:10 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. 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: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

        private static final Logger logger = LoggerFactory.getLogger(HcHttpClient.class);
    
        @Resource
        protected RobotsTxtHelper robotsTxtHelper;
    
        @Resource
        protected ContentLengthHelper contentLengthHelper;
    
        @Resource
        protected MimeTypeHelper mimeTypeHelper;
    
        protected volatile CloseableHttpClient httpClient;
    
        private final List<Header> requestHeaderList = new ArrayList<>();
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 41K bytes
    - Viewed (0)
Back to top