Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for ResponseData (0.12 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

    import java.util.Set;
    
    import org.codelibs.core.exception.IORuntimeException;
    import org.codelibs.core.io.FileUtil;
    import org.codelibs.fess.crawler.Constants;
    
    /**
     * @author shinsuke
     *
     */
    public class ResponseData implements Closeable {
    
        private String url;
    
        private int httpStatusCode;
    
        private String charSet;
    
        private long contentLength;
    
        private String mimeType;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/SitemapsRuleTest.java

            final ResponseData responseData = new ResponseData();
            responseData.setUrl("http://example.com/test.xml");
            File file = ResourceUtil.getResourceAsFile("sitemaps/sitemap1.xml");
            responseData.setResponseBody(file, false);
            return responseData;
        }
    
        private ResponseData getTestData2_FAIL() {
            final ResponseData responseData = new ResponseData();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

                    }
                }
            }
        }
    
        protected ResponseData getResponseData(final String uri, final boolean includeContent) {
            final ResponseData responseData = new ResponseData();
            try {
                responseData.setMethod(Constants.GET_METHOD);
                final String filePath = preprocessUri(uri);
                responseData.setUrl(filePath);
    
                File file = null;
                try {
    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/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

        }
    
        protected ResponseData getResponseData(final String uri, final boolean includeContent) {
            final ResponseData responseData = new ResponseData();
            responseData.setMethod(Constants.GET_METHOD);
            final String filePath = preprocessUri(uri);
            responseData.setUrl(filePath);
    
            SmbFile file = null;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                    }
                }
            }
        }
    
        protected ResponseData getResponseData(final String uri, final boolean includeContent) {
            final ResponseData responseData = new ResponseData();
            responseData.setMethod(Constants.GET_METHOD);
            final String filePath = preprocessUri(uri);
            responseData.setUrl(filePath);
    
            SmbFile file = null;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/processor/impl/DefaultResponseProcessor.java

            }
        }
    
        protected boolean isSuccessful(final ResponseData responseData) {
            if (successfulHttpCodes == null) {
                return true;
            }
            final int httpStatusCode = responseData.getHttpStatusCode();
            for (final int code : successfulHttpCodes) {
                if (code == httpStatusCode) {
                    return true;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

        // for (String url : urls) {
        // ResponseData responseData = httpClient.doGet(url);
        // // assertEquals(200, responseData.getHttpStatusCode());
        // if (responseData.getHttpStatusCode() != 200) {
        // return responseData;
        // }
        // }
        // return null;
        // }
        // });
        // }
        // List<Future<ResponseData>> futureList = executorService.invokeAll(list);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java

         * (non-Javadoc)
         *
         * @see
         * org.codelibs.fess.crawler.transformer.impl.AbstractTransformer#transform(org.fess.crawler.entity.ResponseData)
         */
        @Override
        public ResultData transform(final ResponseData responseData) {
            if (responseData == null || !responseData.hasResponseBody()) {
                throw new CrawlingAccessException("No response body.");
            }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/LogHelperImpl.java

            // UrlQueue<?> urlQueue = (UrlQueue<?>) objs[1];
            final ResponseData responseData = (ResponseData) objs[2];
            if (logger.isDebugEnabled()) {
                logger.debug("No rule for ({}, {}). PLEASE CHECK YOUR CONFIGURATION.", responseData.getUrl(), responseData.getMimeType());
            }
        }
    
        protected void processNoResponseProcessor(final Object... objs) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java

                    throw new CrawlerSystemException("exception " + count);
                }
    
                final ResponseData responseData = new ResponseData();
                responseData.setUrl(request.getUrl());
                responseData.setMethod(request.getMethod().toString());
                return responseData;
            }
    
            /*
             * (non-Javadoc)
             *
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top