Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getTransportPool (0.26 sec)

  1. src/test/java/jcifs/CIFSContextTest.java

            // Given
            SmbTransportPool mockPool = mock(SmbTransportPool.class);
            when(mockContext.getTransportPool()).thenReturn(mockPool);
    
            // When
            SmbTransportPool pool = mockContext.getTransportPool();
    
            // Then
            assertEquals(mockPool, pool);
            verify(mockContext).getTransportPool();
        }
    
        @Test
        @DisplayName("Should get DfsResolver")
        void testGetDfs() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/context/CIFSContextWrapper.java

        }
    
        @Override
        public BufferCache getBufferCache() {
            return this.delegate.getBufferCache();
        }
    
        @Override
        public SmbTransportPool getTransportPool() {
            return this.delegate.getTransportPool();
        }
    
        @Override
        public boolean close() throws CIFSException {
            return this.delegate.close();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NtlmServlet.java

                }
                NtlmPasswordAuthentication ntlm;
                if (msg.startsWith("NTLM ")) {
                    final byte[] challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    ntlm = NtlmSsp.authenticate(getTransportContext(), request, response, challenge);
                    if (ntlm == null) {
                        return;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (1)
  4. src/test/java/jcifs/DfsResolverTest.java

        }
    
        @Test
        void testGetDc_Success() throws CIFSException, IOException {
            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
            when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/context/BaseContext.java

            } catch (final MalformedURLException e) {
                throw new CIFSException("Invalid URL " + url, e);
            }
        }
    
        @Override
        public SmbTransportPool getTransportPool() {
            return this.transportPool;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getConfig()
         */
        @Override
        public Configuration getConfig() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DfsImplTest.java

            // Set up mock behaviors
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockContext.getCredentials()).thenReturn(mockCredentials);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
            when(mockConfig.getDfsTtl()).thenReturn(300L);
    
            // Mock transport to throw IOException - simulating connection failure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/CIFSContext.java

         */
        BufferCache getBufferCache();
    
        /**
         * Get the transport pool for managing SMB connections
         *
         * @return the transport pool
         */
        SmbTransportPool getTransportPool();
    
        /**
         * Get the DFS resolver for handling distributed file system paths
         *
         * @return the DFS instance for this context
         */
        DfsResolver getDfs();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            }
    
            @Override
            public DfsResolver getDfs() {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public SmbTransportPool getTransportPool() {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public BufferCache getBufferCache() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top