- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getContentAsString (0.08 sec)
-
src/test/java/org/codelibs/curl/CurlResponseTest.java
response.setContentCache(cache); String content = response.getContentAsString(); assertEquals(testContent, content); } @Test public void testGetContentAsStringWithoutCache() { CurlResponse response = new CurlResponse(); try { response.getContentAsString(); fail("Expected CurlException"); } catch (CurlException e) {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 11.5K bytes - Viewed (0) -
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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlTest.java
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0) -
README.md
.header("Accept", "application/json") .executeSync()) { System.out.println("Status: " + response.getHttpStatusCode()); System.out.println(response.getContentAsString()); } ``` ### Asynchronous request ```java import org.codelibs.curl.Curl; Curl.post("https://api.example.com/items") .body("{\"name\":\"item1\"}")
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:11:14 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
/** * Gets the content of the response as a string. * * @return the content as a string. * @throws CurlException if an error occurs while accessing the content. */ public String getContentAsString() { final byte[] bytes = new byte[4096]; try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream()); ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 6.8K bytes - Viewed (0) -
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 Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 29.8K bytes - Viewed (0) -
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); } } /** * Gets the list of installed artifacts of the specified type. *
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 24.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/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 Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 121.9K bytes - Viewed (0)