Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for testcontent (0.06 sec)

  1. src/main/java/org/codelibs/curl/CurlResponse.java

         *
         * @param <T> the type of the parsed content.
         * @param parser the function to parse the content.
         * @return the parsed content.
         */
        public <T> T getContent(final Function<CurlResponse, T> parser) {
            return parser.apply(this);
        }
    
        /**
         * Gets the content of the response as a string.
         *
         * @return the content as a string.
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/RelatedContentHelperTest.java

        private RelatedContent createRelatedContent(String term, String content, String virtualHost) {
            RelatedContent entity = new RelatedContent();
            entity.setTerm(term);
            entity.setContent(content);
            entity.setVirtualHost(virtualHost);
            return entity;
        }
    
        // Mock classes
    
        static class MockRelatedContentBhv extends RelatedContentBhv {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            }
    
            @Test
            @DisplayName("getName() should return expected byte array")
            void testGetNameMethod() {
                byte[] expectedName = "TEST_CONTEXT".getBytes(StandardCharsets.UTF_8);
                CreateContextResponse response = mock(CreateContextResponse.class);
                when(response.getName()).thenReturn(expectedName);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

     *         .mimeType("application/pdf")
     *         .filename("example.pdf")
     *         .maxContentLength(1024 * 1024)
     *         .extract();
     *
     *     String content = extractData.getContent();
     *     // Process the extracted content
     * } catch (IOException e) {
     *     // Handle exception
     * }
     * }
     * </pre>
     */
    public class ExtractorBuilder {
    
        /** Logger instance for this class */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

                    logger.error("Failed to access {}, code: {}.", url, response.getStatusLine().getStatusCode());
                    return null;
                }
    
                data.setContent(EntityUtils.toString(response.getEntity(), Charsets.UTF_8));
                final Header[] headers = response.getAllHeaders();
                for (final Header header : headers) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testForPredicateSerializable() {
        checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5)));
      }
    
      public void testConstant() {
        Function<@Nullable Object, Object> f = Functions.<Object>constant("correct");
        assertEquals("correct", f.apply(new Object()));
        assertEquals("correct", f.apply(null));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java

                    .header("Accept", "application/json")
                    .execute()) {
                final Map<String, Object> contentMap = response.getContent(OpenSearchCurl.jsonParser());
                if (logger.isDebugEnabled()) {
                    logger.debug("response: {}", contentMap);
                }
                if (contentMap.containsKey("value")) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 28 09:13:08 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java

                try (final FileInputStream in = new FileInputStream(outputFile)) {
                    final ExtractData extractData = extractor.getText(in, params);
                    return extractData.getContent();
                } catch (final IOException e) {
                    throw new ExtractException("Could not open " + outputFile.getAbsolutePath(), e);
                }
            }
            try {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractor.java

                        final Map<String, String> map = new HashMap<>();
                        map.put(ExtractData.RESOURCE_NAME_KEY, filename);
                        final String content = extractor.getText(is, map).getContent();
                        writer.write(content);
                        writer.write('\n');
                    } catch (final Exception e) {
                        if (logger.isDebugEnabled()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

        }
    
        /**
         * Test that connect() calls connect() on the underlying connection.
         * @throws IOException
         */
        @Test
        void testConnect() throws Exception {
            // Act
            ntlmConnection.connect();
    
            // Assert
            verify(mockConnection).connect();
            // Connection should be established after connect
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top