Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for contentType (0.08 sec)

  1. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetFromStream_gif() throws Exception {
            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/ccc.gif";
            final String contentType = MimeTypeUtil.guessContentType(path);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/OsddHelper.java

            this.encoding = encoding;
        }
    
        /**
         * Sets the content type.
         *
         * @param contentType the content type
         */
        public void setContentType(final String contentType) {
            this.contentType = contentType;
        }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                }
    
                String contentType = null;
                final Header contentTypeHeader = response.getFirstHeader("Content-Type");
                if (contentTypeHeader != null) {
                    contentType = contentTypeHeader.getValue();
                    final int idx = contentType.indexOf(';');
                    if (idx > 0) {
                        contentType = contentType.substring(0, idx);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 53.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            return new JakartaServletDiskFileUpload(fileItemFactory) {
                @Override
                public byte[] getBoundary(final String contentType) { // for security
                    final byte[] boundary = super.getBoundary(contentType);
                    checkBoundarySize(contentType, boundary);
                    return boundary;
                }
            };
        }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 18.6K bytes
    - Viewed (1)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

            if (StringUtil.isNotEmpty(resourceName)) {
                metadata.set(ExtractData.RESOURCE_NAME_KEY, resourceName);
            }
            if (StringUtil.isNotBlank(contentType)) {
                metadata.set(ExtractData.CONTENT_TYPE, contentType);
            }
            if (StringUtil.isNotBlank(contentEncoding)) {
                metadata.set(ExtractData.CONTENT_ENCODING, contentEncoding);
            }
            if (pdfPassword != null) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 30.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/api/BaseApiManager.java

         * @param text The text content to write.
         * @param contentType The content type for the response.
         * @param encoding The character encoding for the response.
         */
        protected void write(final String text, final String contentType, final String encoding) {
            final StringBuilder buf = new StringBuilder(50);
            if (contentType == null) {
                buf.append("text/plain");
            } else {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/s3/S3ClientTest.java

                    .contentType("application/octet-stream")
                    .build());
            minioClient.putObject(PutObjectArgs.builder()
                    .bucket(bucketName)
                    .object("dir1/file2.txt")
                    .stream(new ByteArrayInputStream("file2".getBytes()), 5, -1)
                    .contentType("application/octet-stream")
                    .build());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/storage/StorageClient.java

         * @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.
         *
         * @param objectName the name/path of the object to download
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

            final CurlRequest curlRequest = ComponentUtil.getCurlHelper().request(httpMethod, path);
    
            final String contentType = request.getHeader("Content-Type");
            if (StringUtil.isNotEmpty(contentType)) {
                curlRequest.header("Content-Type", contentType);
            }
    
            request.getParameterMap().entrySet().stream().forEach(entry -> {
                if (entry.getValue().length > 1) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

        }
    
        @Override
        public void uploadObject(final String objectName, final InputStream inputStream, final long size, final String contentType) {
            try {
                final PutObjectRequest request =
                        PutObjectRequest.builder().bucket(bucket).key(objectName).contentType(contentType).contentLength(size).build();
                s3Client.putObject(request, RequestBody.fromInputStream(inputStream, size));
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top