Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for URLStreamHandler (0.25 sec)

  1. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

     */
    package org.codelibs.fess.net.protocol.storage;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.URL;
    import java.net.URLConnection;
    import java.net.URLStreamHandler;
    import java.security.InvalidKeyException;
    import java.security.NoSuchAlgorithmException;
    
    import org.codelibs.core.lang.StringUtil;
    
    import io.minio.GetObjectArgs;
    import io.minio.MinioClient;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

        @Mock
        private Configuration config;
        @Mock
        private Credentials creds;
        @Mock
        private NameServiceClient nsc;
    
        // Minimal URLStreamHandler to allow creating smb:// URLs in tests
        private static final URLStreamHandler SMB_HANDLER = new URLStreamHandler() {
            @Override
            protected URLConnection openConnection(URL u) {
                return null; // not used
            }
        };
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

    import static org.mockito.Mockito.verify;
    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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/context/BaseContextTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.net.URLStreamHandler;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    import jcifs.BaseTest;
    import jcifs.BufferCache;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            }
        }
    
        /**
         * Test helper class for mocking URL.openConnection() behavior
         */
        static class TestURLStreamHandler extends java.net.URLStreamHandler {
            private final List<HttpURLConnection> connections = new ArrayList<>();
            private int currentIndex = 0;
    
            void addConnection(HttpURLConnection conn) {
                connections.add(conn);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top