Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getContentAsString (0.1 sec)

  1. src/test/java/org/codelibs/curl/CurlTest.java

        @Test
        public void test_Get() {
            Curl.get("https://www.codelibs.org/").execute(response -> {
                final String content = response.getContentAsString();
                logger.info(content);
                assertTrue(content.length() > 0);
            }, e -> {
                logger.log(Level.SEVERE, "error", e);
                fail();
            });
        }
    
        /*
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/NotificationHelper.java

                        }
                    } else {
                        logger.warn("Failed to send {} to {}. HTTP Status is {}. {}", body, url, response.getHttpStatusCode(),
                                response.getContentAsString());
                    }
                } catch (final IOException e) {
                    logger.warn("Failed to send {} to {}.", body, url, e);
                }
            }));
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/curl/CurlResponse.java

                contentCache.close();
            }
        }
    
        public <T> T getContent(final Function<CurlResponse, T> parser) {
            return parser.apply(this);
        }
    
        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/upgrade/AdminUpgradeAction.java

                    return response.getContentAsString();
                }
                if (response.getContentException() != null) {
                    logger.warn("{} is invalid path.", path, response.getContentException());
                } else {
                    logger.warn("{} is invalid path. The response is {}", path, response.getContentAsString());
                }
            } catch (final IOException e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 54K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/PluginHelper.java

            if (logger.isDebugEnabled()) {
                logger.debug("Loading {}", url);
            }
            try (final CurlResponse response = createCurlRequest(url).execute()) {
                return response.getContentAsString();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        public Artifact[] getInstalledArtifacts(final ArtifactType artifactType) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 01:47:10 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                    throw new IORuntimeException(e);
                }
            }).execute()) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Bulk Response:\n{}", response.getContentAsString());
                }
                systemHelper.reloadConfiguration(resetJobs.get());
            } catch (final Exception e) {
                logger.warn("Failed to process bulk file: {}", fileName, e);
            } finally {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

                            logger.warn("Invalid request for {}.", path, response.getContentException());
                        } else {
                            logger.warn("Invalid request for {}. The response is {}", path, response.getContentAsString());
                        }
                    }
                } catch (final Exception e) {
                    logger.warn("Failed to register {}", filePath, e);
                }
            });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Oct 20 02:08:03 UTC 2024
    - 86.1K bytes
    - Viewed (0)
Back to top