- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for getContentAsString (0.09 seconds)
-
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) {
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (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() { if (contentCache == null) { if (contentException != null) { throw new CurlException("Failed to access the content.", contentException); }Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 6.8K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
// ## Act ## try (CurlResponse response = req.execute()) { // ## Assert ## assertEquals(200, response.getHttpStatusCode()); String content = response.getContentAsString(); assertEquals("", content); } } @Test public void test_HeadRequestWith404_ReturnsEmptyBody() throws Exception { // ## Arrange ##Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 33.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/PluginHelper.java
if (logger.isDebugEnabled()) { logger.debug("Loading: url={}", 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. *
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Mar 04 15:19:41 GMT 2026 - 25.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java
if (response.getHttpStatusCode() == 200) { final String content = response.getContentAsString(); final ObjectMapper mapper = new ObjectMapper(); final List<Map<String, String>> aliases = mapper.readValue(content, new TypeReference<List<Map<String, String>>>() { });
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 138.6K bytes - Click Count (1)