- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for URLStreamHandlerFactory (3.36 sec)
-
src/main/java/jcifs/smb1/http/Handler.java
* * @param factory The URL stream handler factory. */ public static void setURLStreamHandlerFactory(final URLStreamHandlerFactory factory) { synchronized (PROTOCOL_HANDLERS) { if (Handler.factory != null) { throw new IllegalStateException("URLStreamHandlerFactory already set."); } PROTOCOL_HANDLERS.clear(); Handler.factory = factory; } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/http/Handler.java
* The URL stream handler factory. */ public static void setURLStreamHandlerFactory(final URLStreamHandlerFactory factory) { synchronized (PROTOCOL_HANDLERS) { if (Handler.factory != null) { throw new IllegalStateException("URLStreamHandlerFactory already set."); } PROTOCOL_HANDLERS.clear(); Handler.factory = factory; } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
// This test ensures that attempting to set the URLStreamHandlerFactory more than once // throws an IllegalStateException as per the contract. URLStreamHandlerFactory mockFactory1 = mock(URLStreamHandlerFactory.class); URLStreamHandlerFactory mockFactory2 = mock(URLStreamHandlerFactory.class); Handler.setURLStreamHandlerFactory(mockFactory1); // First call, should succeed.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
import static org.mockito.Mockito.when; import java.lang.reflect.Field; import java.net.MalformedURLException; import java.net.URL; import java.net.URLStreamHandler; import java.net.URLStreamHandlerFactory; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
docs/changelogs/changelog_1x.md
the way the hostname verifier was selected. * Fix: Locking bug in SpdyConnection. * Fix: Ignore null header values (for compatibility with HttpURLConnection). * Add URLStreamHandlerFactory support so that `URL.openConnection()` uses OkHttp. * Expose the transport ("http/1.1", "spdy/3", etc.) via magic request headers. Use `X-Android-Transports` to write the preferred transports and
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 6.4K bytes - Viewed (0)