Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for setMimeType (0.09 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                            try (final InputStream is = responseData.getResponseBody()) {
                                responseData.setMimeType(mimeTypeHelper.getContentType(is, file.getName()));
                            } catch (final Exception e) {
                                responseData.setMimeType(mimeTypeHelper.getContentType(null, file.getName()));
                            }
                        } else {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                            try (final InputStream is = responseData.getResponseBody()) {
                                responseData.setMimeType(mimeTypeHelper.getContentType(is, file.getName()));
                            } catch (final Exception e) {
                                responseData.setMimeType(mimeTypeHelper.getContentType(null, file.getName()));
                            }
                        } else {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

                        try (final InputStream is = new BufferedInputStream(new FileInputStream(file))) {
                            responseData.setMimeType(mimeTypeHelper.getContentType(is, file.getName()));
                        } catch (final Exception e) {
                            responseData.setMimeType(mimeTypeHelper.getContentType(null, file.getName()));
                        }
    
                        if (contentLengthHelper != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataServiceTest.java

            assertNotNull(accessResult3);
            assertNotNull(accessResult4);
    
            final List<OpenSearchAccessResult> accessResultList = new ArrayList<>();
            accessResult3.setMimeType("text/html");
            accessResult4.setMimeType("text/html");
            accessResultList.add(accessResult3);
            accessResultList.add(accessResult4);
            dataService.update(accessResultList);
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RegexRuleTest.java

            responseData.setUrl("http://example.com/");
            responseData.setMimeType("text/html");
            return responseData;
        }
    
        private ResponseData getTestData2() {
            final ResponseData responseData = new ResponseData();
            responseData.setHttpStatusCode(200);
            responseData.setUrl("https://example.com/");
            responseData.setMimeType("text/html");
            return responseData;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java

            final ResponseData responseData = new ResponseData();
            responseData.setUrl("file:/test.txt");
            responseData.setCharSet(Constants.UTF_8);
            responseData.setResponseBody(data);
            responseData.setMimeType("text/plain");
            final ResultData resultData = textTransformer.transform(responseData);
            assertEquals("xyz", new String(resultData.getData(), resultData.getEncoding()));
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/service/impl/DataServiceImplTest.java

            accessResult1.setExecutionTime(10);
            accessResult1.setHttpStatusCode(200);
            accessResult1.setLastModified(System.currentTimeMillis());
            accessResult1.setMethod("GET");
            accessResult1.setMimeType("text/plain");
            accessResult1.setParentUrl("http://www.parent.com/");
            accessResult1.setRuleId("htmlRule");
            accessResult1.setSessionId("id1");
            accessResult1.setStatus(200);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResultImpl.java

        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)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResult.java

        Integer getHttpStatusCode();
    
        void setHttpStatusCode(Integer httpStatusCode);
    
        String getMethod();
    
        void setMethod(String method);
    
        String getMimeType();
    
        void setMimeType(String mimeType);
    
        Long getCreateTime();
    
        void setCreateTime(Long createTime);
    
        Integer getExecutionTime();
    
        void setExecutionTime(Integer executionTime);
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/storage/StorageClient.java

                    try (final InputStream is = responseData.getResponseBody()) {
                        responseData.setMimeType(mimeTypeHelper.getContentType(is, statObject.object()));
                    } catch (final Exception e) {
                        responseData.setMimeType(mimeTypeHelper.getContentType(null, statObject.object()));
                    }
                }
            } catch (final CrawlerSystemException e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top