Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for getHttpStatusCode (0.11 sec)

  1. src/main/java/org/codelibs/fess/helper/NotificationHelper.java

                    if (response.getHttpStatusCode() == 200) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("Sent {} to {}.", body, url);
                        }
                    } else {
                        logger.warn("Failed to send {} to {}. HTTP Status is {}. {}", body, url, response.getHttpStatusCode(),
                                response.getContentAsString());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. 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;
                }
            }
            return false;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

        // "http://.../test.ppt",
        // "http://.../test.txt", };
        // for (String url : urls) {
        // ResponseData responseData = httpClient.doGet(url);
        // // assertEquals(200, responseData.getHttpStatusCode());
        // if (responseData.getHttpStatusCode() != 200) {
        // return responseData;
        // }
        // }
        // return null;
        // }
        // });
        // }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            if (!path.startsWith("/")) {
                path = "/" + path.replace('\\', '/');
            }
            final ResponseData responseData = fsClient.doGet("file:" + path);
            assertEquals(200, responseData.getHttpStatusCode());
            assertEquals("UTF-8", responseData.getCharSet());
            assertTrue(6 == responseData.getContentLength() || 7 == responseData.getContentLength());
            assertNotNull(responseData.getLastModified());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResultImpl.java

            this.status = status;
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.entity.AccessResult#getHttpStatusCode()
         */
        @Override
        public Integer getHttpStatusCode() {
            return httpStatusCode;
        }
    
        /*
         * (non-Javadoc)
         *
         * @see
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResult.java

        void setUrl(String url);
    
        String getParentUrl();
    
        void setParentUrl(String parentUrl);
    
        Integer getStatus();
    
        void setStatus(Integer status);
    
        Integer getHttpStatusCode();
    
        void setHttpStatusCode(Integer httpStatusCode);
    
        String getMethod();
    
        void setMethod(String method);
    
        String getMimeType();
    
        void setMimeType(String mimeType);
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/curl/CurlResponse.java

            }
            return contentCache.getInputStream();
        }
    
        public void setContentCache(final ContentCache contentCache) {
            this.contentCache = contentCache;
        }
    
        public int getHttpStatusCode() {
            return httpStatusCode;
        }
    
        public void setHttpStatusCode(final int httpStatusCode) {
            this.httpStatusCode = httpStatusCode;
        }
    
        public String getEncoding() {
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

                ftpClient.setInitParameterMap(params);
                final ResponseData responseData = ftpClient.doGet("ftp://localhost:" + FTP_PORT + "/text1.txt");
                assertEquals(200, responseData.getHttpStatusCode());
                assertEquals("UTF-8", responseData.getCharSet());
                assertTrue(6 == responseData.getContentLength());
                assertNotNull(responseData.getLastModified());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/upgrade/AdminUpgradeAction.java

                        }
                    }
                }
                try (CurlResponse response = ComponentUtil.getCurlHelper().post("/_configsync/flush").execute()) {
                    if (response.getHttpStatusCode() == 200) {
                        logger.info("Flushed config files.");
                    } else {
                        logger.warn("Failed to flush config files.");
                    }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top