Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 471 for mime (0.02 seconds)

  1. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

                // Test case 1: SVG MIME type should match
                Map<String, Object> svgDocMap = new HashMap<>();
                svgDocMap.put("thumbnail", "http://example.com/image.svg");
                svgDocMap.put("mimetype", "image/svg+xml");
                assertTrue("SVG MIME type should be target", generator.isTarget(svgDocMap));
    
                // Test case 2: Different MIME type should not match
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/crawler/helper/FessMimeTypeHelper.java

    import org.codelibs.fess.util.ComponentUtil;
    
    import jakarta.annotation.PostConstruct;
    
    /**
     * FessMimeTypeHelper extends MimeTypeHelperImpl to provide Fess-specific
     * MIME type detection configuration. It reads extension-to-MIME-type override
     * mappings from FessConfig to handle cases where content-based detection
     * produces incorrect results (e.g., SQL files starting with REM comments
     * being misdetected as batch files).
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 24 09:06:33 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/crawler/rule/CrawlerRuleMimeTypePatternTest.java

    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.junit.jupiter.api.Test;
    
    /**
     * Test class for MIME type patterns defined in crawler/rule.xml.
     * Verifies that regex patterns correctly match MIME types with special characters.
     *
     * This test ensures that the + character in MIME types like application/xhtml+xml
     * is properly escaped in regex patterns to match literally.
     */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  4. src/main/resources/crawler/rule.xml

    		<postConstruct name="addRule">
    			<arg>"url"</arg>
    			<arg>"http[s]?:.*"</arg>
    		</postConstruct>
    		<postConstruct name="addRule">
    			<arg>"mimeType"</arg>
    			<!-- Supported MIME type -->
    			<arg>"text/html"</arg>
    		</postConstruct>
    	</component>
    
    	<component name="webFileRule" class="org.codelibs.fess.crawler.rule.impl.RegexRule" >
    		<property name="ruleId">"webFileRule"</property>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 29 08:21:02 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

        }
    
        // ==================== Tests for getExtensionFromMimeType method ====================
    
        // Tests for GIF MIME type
        @Test
        public void test_getExtensionFromMimeType_gif() {
            assertEquals(".gif", generator.getExtensionFromMimeType("image/gif"));
        }
    
        // Tests for TIFF MIME type
        @Test
        public void test_getExtensionFromMimeType_tiff() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

            });
    
        }
    
        /**
         * Checks if the response data contains an image MIME type that can be processed
         * for thumbnail generation.
         *
         * @param responseData the response data containing MIME type information
         * @return true if the MIME type represents a supported image format, false otherwise
         */
        protected boolean isImageMimeType(final ResponseData responseData) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessFileTransformer.java

         */
        @Override
        public Logger getLogger() {
            return logger;
        }
    
        /**
         * Gets the appropriate extractor for the given response data.
         * Selects an extractor based on the MIME type of the file.
         *
         * @param responseData the response data containing the file to extract
         * @return the extractor instance for processing the file
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/storage/StorageClient.java

         *
         * @param objectName the name/path for the object
         * @param inputStream the input stream of data to upload
         * @param size the size of the data in bytes
         * @param contentType the MIME type of the content
         */
        void uploadObject(String objectName, InputStream inputStream, long size, String contentType);
    
        /**
         * Downloads an object from storage.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4HttpClient.java

        public void setProxyCredentials(final Credentials proxyCredentials) {
            this.proxyCredentials = proxyCredentials;
        }
    
        /**
         * Sets the default MIME type for unknown content.
         *
         * @param defaultMimeType The default MIME type
         */
        public void setDefaultMimeType(final String defaultMimeType) {
            this.defaultMimeType = defaultMimeType;
        }
    
        /**
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:52 GMT 2026
    - 54.4K bytes
    - Click Count (0)
  10. CLAUDE.md

    - **SitemapsHelper**: Sitemap XML parsing, index handling
    - **MimeTypeHelper**: MIME detection via Tika
    - **EncodingHelper**: Charset detection with BOM
    - **UrlConvertHelper**: URL normalization
    - **ContentLengthHelper**: Content length limits per MIME type
    
    ---
    
    ## Development Workflow
    
    ### Build Commands
    
    ```bash
    mvn clean install              # Build all
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Mar 12 03:39:20 GMT 2026
    - 8.1K bytes
    - Click Count (0)
Back to Top