Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getContentAsString (1.93 sec)

  1. 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: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. 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();
            });
        }
    
        @Test
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  3. 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());
    
                if (logger.isInfoEnabled()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 24 02:07:40 UTC 2025
    - 32.1K bytes
    - Viewed (0)
  4. 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.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top