- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for createURLStreamHandler (0.17 seconds)
-
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (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; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.1K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.9K bytes - Click Count (0)