Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for mimetype (0.14 sec)

  1. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

                logger.debug("loaded filetype: {}", mimetypeMap);
            }
        }
    
        public void add(final String mimetype, final String filetype) {
            mimetypeMap.put(mimetype, filetype);
        }
    
        public String get(final String mimetype) {
            final String filetype = mimetypeMap.get(mimetype);
            if (StringUtil.isBlank(filetype)) {
                return defaultValue;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/ContentLengthHelperTest.java

            final String mimeType = "text/plain";
    
            assertEquals(DEFAULT_MAX_LENGTH, contentLengthHelper.getMaxLength(mimeType));
            contentLengthHelper.addMaxLength(mimeType, 1000L);
            assertEquals(1000L, contentLengthHelper.getMaxLength(mimeType));
        }
    
        public void test_getMaxLength_blank() {
            String mimeType;
    
            mimeType = null;
    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

            this.crawlerContainer = crawlerContainer;
            this.in = in;
            this.params = params;
        }
    
        public ExtractorBuilder mimeType(final String mimeType) {
            this.mimeType = mimeType;
            return this;
        }
    
        public ExtractorBuilder filename(final String filename) {
            this.filename = filename;
            return this;
        }
    
    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. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResultImpl.java

         */
        @Override
        public String getMimeType() {
            return mimeType;
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.entity.AccessResult#setMimeType(java.lang.String)
         */
        @Override
        public void setMimeType(final String mimeType) {
            this.mimeType = mimeType;
        }
    
        /*
         * (non-Javadoc)
         *
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResult.java

                builder.field(HTTP_STATUS_CODE, httpStatusCode);
            }
            if (method != null) {
                builder.field(METHOD, method);
            }
            if (mimeType != null) {
                builder.field(MIME_TYPE, mimeType);
            }
            if (createTime != null) {
                builder.field(CREATE_TIME, createTime);
            }
            if (executionTime != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RegexRuleTest.java

            final RegexRule regexRule = new RegexRule();
            regexRule.defaultRule = true;
            regexRule.allRequired = true;
            regexRule.addRule("url", Pattern.compile("http:.*"));
            regexRule.addRule("mimeType", Pattern.compile("text/html"));
    
            assertTrue(regexRule.match(getTestData1()));
            assertTrue(regexRule.match(getTestData2()));
            assertTrue(regexRule.match(getTestData3()));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java

        public void addMaxLength(final String mimeType, final long maxLength) {
            if (StringUtil.isBlank(mimeType)) {
                throw new CrawlerSystemException("MIME type is a blank.");
            }
            if (maxLength < 0) {
                throw new CrawlerSystemException("The value of maxLength is invalid.");
            }
            maxLengthMap.put(mimeType, 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)
  8. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

            stream(config.getPermissions()).of(stream -> stream.forEach(p -> roleTypeList.add(p)));
            defaultDataMap.put(fessConfig.getIndexFieldRole(), roleTypeList);
            // mimetype
            defaultDataMap.put(fessConfig.getIndexFieldMimetype(), mimeType);
            // title
            // content
            // cache
            // digest
            // host
            // site
            // url
            // anchor
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

            });
    
        }
    
        protected boolean isImageMimeType(final ResponseData responseData) {
            final String mimeType = responseData.getMimeType();
            if (mimeType == null) {
                return true;
            }
    
            return switch (mimeType) {
            case "image/png", "image/gif", "image/jpeg", "image/bmp" -> true;
            default -> false;
            };
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

            try {
                final String filename = getDecodeText(bodyPart.getFileName());
                final String mimeType = mimeTypeHelper.getContentType(null, filename);
                if (mimeType != null) {
                    final Extractor extractor = extractorFactory.getExtractor(mimeType);
                    if (extractor != null) {
                        try (final InputStream in = bodyPart.getInputStream()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top