Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 18 of 18 for getTransportPool (1.48 seconds)

  1. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  2. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  3. 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 =
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 29.7K bytes
    - Click Count (0)
  4. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  5. 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();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  6. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 30.4K bytes
    - Click Count (1)
  7. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

                log.debug("Exception in disconnect", e);
            } finally {
                this.socket = null;
                this.digest = null;
                this.tconHostName = null;
                this.transportContext.getTransportPool().removeTransport(this);
            }
            return wasInUse;
        }
    
        @Override
        protected long makeKey(final Request request) throws IOException {
            long m = this.mid.incrementAndGet() - 1;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
Back to Top