- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for URLStreamHandler (0.12 sec)
-
src/main/java/jcifs/smb1/http/Handler.java
return new NtlmHttpURLConnection((HttpURLConnection) url.openConnection()); } private static URLStreamHandler getDefaultStreamHandler(final String protocol) throws IOException { synchronized (PROTOCOL_HANDLERS) { URLStreamHandler handler = (URLStreamHandler) PROTOCOL_HANDLERS.get(protocol); if (handler != null) { return handler; }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/http/Handler.java
import java.net.URL; import java.net.URLConnection; import java.net.URLStreamHandler; import java.net.URLStreamHandlerFactory; import java.util.HashMap; import java.util.Map; import java.util.StringTokenizer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSContext; /** * A <code>URLStreamHandler</code> used to provide NTLM authentication
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
handlersField.setAccessible(true); @SuppressWarnings("unchecked") Map<String, URLStreamHandler> handlers = (Map<String, URLStreamHandler>) handlersField.get(null); // Create mock HTTP handler URLStreamHandler httpHandler = new URLStreamHandler() { @Override protected URLConnection openConnection(URL u) throws IOException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Handler.java
*/ package jcifs.smb1.smb1; import java.io.IOException; import java.net.URL; import java.net.URLConnection; import java.net.URLStreamHandler; /** * URL handler for SMB1 protocol URLs. */ public class Handler extends URLStreamHandler { static final URLStreamHandler SMB_HANDLER = new Handler(); /** * Default constructor for SMB1 URL handler. */ public Handler() { }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/https/HandlerTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.net.URLStreamHandler; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; /** * Test suite for jcifs.https.Handler class.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/zip/ZipFileUtilTest.java
import java.net.URLConnection; import java.net.URLStreamHandler; import junit.framework.TestCase; /** * @author koichik */ public class ZipFileUtilTest extends TestCase { /** * @throws Exception */ public void testToJarFilePath() throws Exception { final URL url = new URL(null, "zip:/Program Files/foo.zip!/", new URLStreamHandler() { @OverrideRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
} @Test @DisplayName("Should get URLStreamHandler") void testGetUrlHandler() { // Given URLStreamHandler mockHandler = mock(URLStreamHandler.class); when(mockContext.getUrlHandler()).thenReturn(mockHandler); // When URLStreamHandler handler = mockContext.getUrlHandler(); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/https/HandlerTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.net.URLStreamHandler; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
// Test getUrlHandler() method // First call should create a new Handler URLStreamHandler handler1 = cifsContextWrapper.getUrlHandler(); assertNotNull(handler1); assertTrue(handler1 instanceof Handler); // Second call should return the same instance URLStreamHandler handler2 = cifsContextWrapper.getUrlHandler(); assertEquals(handler1, handler2); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/Handler.java
import java.net.URL; import java.net.URLConnection; import java.net.URLStreamHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSContext; import jcifs.SmbConstants; import jcifs.context.SingletonContext; /** * URL handler for transparent smb:// URL handling * */ public class Handler extends URLStreamHandler {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0)