Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for factory (0.39 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. okhttp-sse/api/okhttp-sse.api

    }
    
    public abstract interface class okhttp3/sse/EventSource$Factory {
    	public static final field Companion Lokhttp3/sse/EventSource$Factory$Companion;
    	public static fun create (Lokhttp3/Call$Factory;)Lokhttp3/sse/EventSource$Factory;
    	public abstract fun newEventSource (Lokhttp3/Request;Lokhttp3/sse/EventSourceListener;)Lokhttp3/sse/EventSource;
    }
    
    public final class okhttp3/sse/EventSource$Factory$Companion {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt

          listener: EventSourceListener,
        ): EventSource
    
        companion object {
          /**
           * Wraps a [Call.Factory] into [EventSource.Factory].
           */
          @JvmStatic
          @JvmName("create")
          fun Call.Factory.asEventSourceFactory(): Factory =
            Factory { request, listener ->
              val actualRequest =
                if (request.header("Accept") == null) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  4. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceFactoryTest.java

      @StartStop
      private final MockWebServer server = new MockWebServer();
    
      @Test
      public void testEventSourceFactory() throws Exception {
        OkHttpClient client = new OkHttpClient();
        EventSource.Factory factory = EventSource.Factory.create(client);
        server.enqueue(
          new MockResponse.Builder()
            .body("data: hello\n\n")
            .setHeader("content-type", "text/event-stream")
            .build()
        );
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt

        replaceWith =
          ReplaceWith(
            expression = "callFactory.asEventSourceFactory()",
            imports = ["okhttp3.sse.EventSource.Factory.Companion.asEventSourceFactory"],
          ),
        level = DeprecationLevel.WARNING,
      )
      @JvmStatic
      fun createFactory(callFactory: Call.Factory): EventSource.Factory = callFactory.asEventSourceFactory()
    
      @Deprecated(
        message = "Moved to extension function.",
        replaceWith =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbResourceException.java

            }
        }
    
        /**
         * Static factory for file handle exhaustion
         */
        public static SmbResourceException fileHandleExhausted(int errorCode) {
            return new SmbResourceException("File handle limit exceeded", errorCode, ResourceType.FILE_HANDLE);
        }
    
        /**
         * Static factory for connection pool exhaustion
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                        factory.addClient("http:.*", container.getComponent("httpClient"));
                        factory.addClient("file:.*", container.getComponent("fsClient"));
                    })
                    .singleton("tikaExtractor", TikaExtractor.class)
                    .<ExtractorFactory> singleton("extractorFactory", ExtractorFactory.class, factory -> {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  8. README.md

    });
    
    // Configure content extraction
    container.singleton("tikaExtractor", TikaExtractor.class);
    container.singleton("extractorFactory", ExtractorFactory.class, factory -> {
        factory.addExtractor("text/html", container.getComponent("tikaExtractor"));
        factory.addExtractor("application/pdf", container.getComponent("tikaExtractor"));
    });
    
    Crawler crawler = container.getComponent("crawler");
    crawler.addUrl("https://example.com");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Aug 31 05:32:52 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

          Request
            .Builder()
            .url(server.url("/"))
        if (accept != null) {
          builder.header("Accept", accept)
        }
        val request = builder.build()
        val factory = client.asEventSourceFactory()
        return factory.newEventSource(request, listener)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

            FtpServerFactory factory = new FtpServerFactory();
            ListenerFactory lisnerFactory = new ListenerFactory();
            lisnerFactory.setPort(port);
            factory.addListener("default", lisnerFactory.createListener());
    
            if (username != null) {
                UserManager userManager = factory.getUserManager();
                BaseUser ftpUser = new BaseUser();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 18K bytes
    - Viewed (0)
Back to top