Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getTransportPool (0.07 sec)

  1. src/test/java/jcifs/context/BaseContextTest.java

            }
        }
    
        @Test
        @DisplayName("getTransportPool should return initialized transport pool")
        void testGetTransportPool() {
            // When
            SmbTransportPool transportPool = context.getTransportPool();
    
            // Then
            assertNotNull(transportPool, "Transport pool should not be null");
            assertSame(transportPool, context.getTransportPool(), "Should return same instance on multiple calls");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Setup default mock behaviors
            when(ctx.getConfig()).thenReturn(config);
            when(ctx.getNameServiceClient()).thenReturn(nameSvc);
            when(ctx.getCredentials()).thenReturn(creds);
            when(ctx.getTransportPool()).thenReturn(pool);
    
            // Default config values
            when(config.getLocalAddr()).thenReturn(null);
            when(config.getLocalPort()).thenReturn(0);
            when(config.getSessionLimit()).thenReturn(10);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        @Test
        void testGetTransportPool() {
            // Test getTransportPool() method
            SmbTransportPool mockSmbTransportPool = mock(SmbTransportPool.class);
            when(mockDelegate.getTransportPool()).thenReturn(mockSmbTransportPool);
            assertEquals(mockSmbTransportPool, cifsContextWrapper.getTransportPool());
            verify(mockDelegate).getTransportPool();
        }
    
        @Test
    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/main/java/jcifs/http/NtlmHttpFilter.java

                    } else {
                        dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
                        challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    }
    
                    ntlm = NtlmSsp.authenticate(getTransportContext(), req, resp, challenge);
                    if (ntlm == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DfsImpl.java

                // https://lists.samba.org/archive/samba-technical/2009-August/066486.html
                // UniAddress addr = UniAddress.getByName(authDomain, true, tf);
                // SmbTransport trans = tf.getTransportPool().getSmbTransport(tf, addr, 0);
                try (SmbTransport dc = getDc(tf, authDomain)) {
                    final CacheEntry<Map<String, CacheEntry<DfsReferralDataInternal>>> entry =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            return getChallenge(tf, dc, 0);
        }
    
        @Override
        public byte[] getChallenge(final CIFSContext tf, final Address dc, final int port) throws SmbException {
            try (SmbTransportInternal trans = tf.getTransportPool()
                    .getSmbTransport(tf, dc, port, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isIpcSigningEnforced())
                    .unwrap(SmbTransportInternal.class)) {
                trans.ensureConnected();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeConnection.java

                        if (log.isDebugEnabled()) {
                            log.debug("Using exclusive transport for " + this);
                        }
                        this.exclusiveTransport = this.ctx.getTransportPool()
                                .getSmbTransport(this.ctx, host, loc.getPort(), true, loc.shouldForceSigning())
                                .unwrap(SmbTransportInternal.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NtlmServletTest.java

                transportContextField.set(ntlmServlet, cifsContext);
            } catch (Exception e) {
                throw new RuntimeException("Failed to inject mock CIFSContext", e);
            }
    
            when(cifsContext.getTransportPool()).thenReturn(transportPool);
            when(cifsContext.getNameServiceClient()).thenReturn(nameServiceClient);
            lenient().when(cifsContext.getConfig()).thenReturn(configuration);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NetworkExplorer.java

                    }
    
                    req.getSession(); /* ensure session id is set for cluster env. */
                    challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    if ((ntlm = NtlmSsp.authenticate(getTransportContext(), req, resp, challenge)) == null) {
                        return;
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
Back to top