Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getHttpStatusCode (0.12 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/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)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

        private byte[] responseBodyBytes;
    
        private File responseBodyFile;
    
        private boolean isTemporaryFile;
    
        private boolean noFollow = false;
    
        public int getHttpStatusCode() {
            return httpStatusCode;
        }
    
        public void setHttpStatusCode(final int statusCode) {
            httpStatusCode = statusCode;
        }
    
        public boolean hasResponseBody() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/UpgradeUtil.java

                try (CurlResponse response =
                        ComponentUtil.getCurlHelper().post("/_configsync/file").param("path", path).body(source).execute()) {
                    if (response.getHttpStatusCode() == 200) {
                        logger.info("Register {} to {}", path, indexName);
                        return true;
                    }
                    logger.warn("Invalid request for {}", path);
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top