- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getSmbTree (1.04 sec)
-
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
// Given SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); // Add some trees SmbTreeImpl tree1 = session.getSmbTree("share1", null); SmbTreeImpl tree2 = session.getSmbTree("share2", null); assertNotNull(tree1); assertNotNull(tree2); // When - Release session to trigger cleanup session.release();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
try (SmbSessionInternal smbSession = trans.getSmbSession(this.ctx, host, targetDomain).unwrap(SmbSessionInternal.class); SmbTreeImpl uct = smbSession.getSmbTree(share, null).unwrap(SmbTreeImpl.class); SmbTreeImpl ct = connectTree(loc, host, share, trans, uct, dr)) { if (dr != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
// Session starts with usage count > 0 assertTrue(session.isInUse(), "Session should be in use initially"); // Create and release trees SmbTreeImpl tree = session.getSmbTree("share1", null); assertNotNull(tree, "Tree should be created"); tree.release(); // Release the session (back to initial state) session.release();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
// Test concurrent tree operations (should be thread-safe with CopyOnWriteArrayList) long opStart = System.nanoTime(); session.getSmbTree(shareName, null); long opEnd = System.nanoTime(); totalTime.addAndGet(opEnd - opStart); treeOperations.incrementAndGet();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
if (this.sessionKey == null) { throw new CIFSException("No session key available"); } return this.sessionKey; } @Override public SmbTreeImpl getSmbTree(String share, String service) { if (share == null) { share = "IPC$"; } synchronized (this.trees) { for (SmbTreeImpl t : this.trees) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(internal.getSmbSession(eq(ctx), eq("server.test"), isNull())).thenReturn(session); when(session.unwrap(SmbSessionInternal.class)).thenReturn(session); when(session.getSmbTree(eq("IPC$"), isNull())).thenReturn(tree); when(tree.unwrap(SmbTreeInternal.class)).thenReturn(tree); doReturn(mockTransport).when(poolSpy).getSmbTransport(eq(ctx), eq(address), anyInt(), eq(false), anyBoolean());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
SmbSessionInternal smbSession = smbTransport.getSmbSession(tf, dc.getHostName(), null).unwrap(SmbSessionInternal.class); SmbTreeInternal tree = smbSession.getSmbTree(tf.getConfig().getLogonShare(), null).unwrap(SmbTreeInternal.class)) { tree.connectLogon(tf); } } /** * Perform health check on connections */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
ssn = trans.getSmbSession(NtlmPasswordAuthentication.NULL); tree = ssn.getSmbTree(null, null); } else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication(url.toString(), sae)) != null) { auth = a; ssn = trans.getSmbSession(auth); tree = ssn.getSmbTree(share, null); tree.inDomainDfs = dfs.resolve(hostName, tree.share, null, auth) != null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} try (SmbSessionImpl sess = getSmbSession(ctx, targetHost, targetDomain); SmbTransportImpl transport = sess.getTransport(); SmbTreeImpl ipc = sess.getSmbTree("IPC$", null)) { final DfsReferralRequestBuffer dfsReq = new DfsReferralRequestBuffer(path, 3); DfsReferralResponseBuffer dfsResp; if (isSMB2()) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)