- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for createURLStreamHandler (0.88 sec)
-
src/test/java/jcifs/http/HandlerTest.java
} }; URL url = new URL("http://custom.protocol/path"); // Configure the mock factory to return our handler for the 'http' protocol. when(mockFactory.createURLStreamHandler("http")).thenReturn(mockStreamHandler); Handler.setURLStreamHandlerFactory(mockFactory); URLConnection connection = handler.openConnection(url);
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/main/java/jcifs/smb1/http/Handler.java
if (handler != null) { return handler; } if (factory != null) { handler = factory.createURLStreamHandler(protocol); } if (handler == null) { final String path = System.getProperty(HANDLER_PKGS_PROPERTY);
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
if (handler != null) { return handler; } if (factory != null) { handler = factory.createURLStreamHandler(protocol); } if (handler == null) { final String path = System.getProperty(HANDLER_PKGS_PROPERTY);
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/smb/DirFileEntryEnumIterator1Test.java
// Try to register the handler factory URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory() { @Override public URLStreamHandler createURLStreamHandler(String protocol) { if ("smb".equals(protocol)) { return new Handler(); } return null; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0)