Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for getHttpStatusCode (0.22 sec)

  1. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                        if (responseData == null) {
                            return true;
                        }
                    }
    
                    final int httpStatusCode = responseData.getHttpStatusCode();
                    if (logger.isDebugEnabled()) {
                        logger.debug("Accessing document: {}, status: {}", url, httpStatusCode);
                    }
                    if (httpStatusCode == 404) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/curl/CurlResponse.java

            this.contentCache = contentCache;
        }
    
        /**
         * Gets the HTTP status code of the response.
         *
         * @return the HTTP status code.
         */
        public int getHttpStatusCode() {
            return httpStatusCode;
        }
    
        /**
         * Sets the HTTP status code for the response.
         *
         * @param httpStatusCode the HTTP status code to set.
         */
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

         */
        public ResponseData() {
            super();
        }
    
        /**
         * Gets the HTTP status code of the response.
         *
         * @return the HTTP status code
         */
        public int getHttpStatusCode() {
            return httpStatusCode;
        }
    
        /**
         * Sets the HTTP status code of the response.
         *
         * @param statusCode the HTTP status code to set
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/PluginHelper.java

                try (final CurlResponse response = createCurlRequest(url).execute()) {
                    if (response.getHttpStatusCode() != 200) {
                        throw new PluginException("HTTP Status " + response.getHttpStatusCode() + " : failed to get the artifact from " + url);
                    }
                    try (final InputStream in = response.getContentAsStream()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                accessResultList.add(accessResult);
    
                if (accessResult.getHttpStatusCode() != 200) {
                    // invalid page
                    if (logger.isDebugEnabled()) {
                        logger.debug("Skipped. The response code is {}.", accessResult.getHttpStatusCode());
                    }
                    continue;
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                }
            }).execute()) {
    
                try (ServletOutputStream out = response.getOutputStream(); InputStream in = curlResponse.getContentAsStream()) {
                    response.setStatus(curlResponse.getHttpStatusCode());
                    writeHeaders(response);
                    final String responseContentType = curlResponse.getHeaderValue("Content-Type");
                    if (StringUtil.isBlank(responseContentType)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/LogHelperImpl.java

            final ResponseData responseData = (ResponseData) objs[2];
            if (logger.isDebugEnabled()) {
                logger.debug("Processing the response. Http Status: {}, Exec Time: {}", responseData.getHttpStatusCode(),
                        responseData.getExecutionTime());
            }
        }
    
        /**
         * Processes redirect location log events.
         *
         * @param objs the log objects (should contain ResponseData)
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java

                String statusCodeCondition = conditions.get("statusCode");
                if (statusCodeCondition != null) {
                    int expectedCode = Integer.parseInt(statusCodeCondition);
                    if (responseData.getHttpStatusCode() != expectedCode) {
                        return false;
                    }
                }
    
                return true;
            }
    
            @Override
            public String getRuleId() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  9. README.md

    // Iterate through crawled data
    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
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Aug 31 05:32:52 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

                            && responseData.getLastModified().getTime() <= urlQueue.getLastModified().longValue()
                            && responseData.getHttpStatusCode() == 200) {
                        log(logHelper, LogType.NOT_MODIFIED, crawlerContext, urlQueue);
    
                        responseData.setExecutionTime(SystemUtil.currentTimeMillis() - startTime);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 20.4K bytes
    - Viewed (0)
Back to top