Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getMimeType (0.04 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java

                assertEquals(5, responseData.getContentLength());
                assertEquals(baseUrl + "file1.txt", responseData.getUrl());
                assertEquals("text/plain", responseData.getMimeType());
                assertNull(responseData.getResponseBody());
            }
            try (final ResponseData responseData = smbClient.doHead(baseUrl + "dir1/file2.txt")) {
                assertEquals(0, responseData.getStatus());
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            assertNotNull(responseData.getLastModified());
            assertEquals(Constants.GET_METHOD, responseData.getMethod());
            assertEquals("text/plain", responseData.getMimeType());
            assertTrue(responseData.getUrl().endsWith("test/text1.txt"));
            final String content = new String(InputStreamUtil.getBytes(responseData.getResponseBody()), "UTF-8");
            assertEquals("test1", content.trim());
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java

                }
    
                // Check MIME type condition
                String mimeTypeCondition = conditions.get("mimeType");
                if (mimeTypeCondition != null && responseData.getMimeType() != null) {
                    if (!responseData.getMimeType().matches(mimeTypeCondition)) {
                        return false;
                    }
                }
    
                // Check status code condition
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

                assertNotNull(responseData.getLastModified());
                assertEquals(Constants.GET_METHOD, responseData.getMethod());
                assertEquals("text/plain", responseData.getMimeType());
                assertTrue(responseData.getUrl().endsWith("text1.txt"));
                final String content = new String(InputStreamUtil.getBytes(responseData.getResponseBody()), "UTF-8");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 18K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

                    urlMatch = responseData.getUrl().matches(urlPattern);
                }
    
                boolean mimeMatch = true;
                if (mimeTypePattern != null && responseData.getMimeType() != null) {
                    mimeMatch = responseData.getMimeType().matches(mimeTypePattern);
                }
    
                return urlMatch && mimeMatch;
            }
    
            public void setUrlPattern(String urlPattern) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                            }
                        }
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                            if (responseData.getContentLength() > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + responseData.getContentLength()
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  7. README.md

    dataService.iterate(sessionId, accessResult -> {
        System.out.println("URL: " + accessResult.getUrl());
        System.out.println("Status: " + accessResult.getHttpStatusCode());
        System.out.println("Content Type: " + accessResult.getMimeType());
        System.out.println("Content: " + accessResult.getContent());
        System.out.println("---");
    });
    
    // Get specific result
    AccessResult result = dataService.getAccessResult(sessionId, url);
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Aug 31 05:32:52 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                            }
                        }
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                            if (responseData.getContentLength() > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + responseData.getContentLength()
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 23K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NetworkExplorer.java

                n = url.lastIndexOf('.');
                if (n > 0 && (type = url.substring(n + 1)) != null && type.length() > 1 && type.length() < 6) {
                    resp.setContentType(mimeMap.getMimeType(type));
                }
                resp.setHeader("Content-Length", file.length() + "");
                resp.setHeader("Accept-Ranges", "Bytes");
    
                while ((n = in.read(buf)) != -1) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top