- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for SmbTreeHandleImpl (0.19 sec)
-
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
import jcifs.internal.SmbNegotiationResponse; import jcifs.internal.smb1.com.SmbComNegotiateResponse; /** * @author mbechler * */ class SmbTreeHandleImpl implements SmbTreeHandleInternal { private static final Logger log = LoggerFactory.getLogger(SmbTreeHandleImpl.class); private final SmbResourceLocatorImpl resourceLoc; private final SmbTreeConnection treeConnection;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
// Arrange SmbFile src = mock(SmbFile.class); SmbFile dest = mock(SmbFile.class); SmbTreeHandleImpl sh = mock(SmbTreeHandleImpl.class); SmbTreeHandleImpl dh = mock(SmbTreeHandleImpl.class); when(sh.isSMB2()).thenReturn(true); when(dh.isSMB2()).thenReturn(true); when(sh.isSameTree(dh)).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
*/ public synchronized SmbTreeHandleImpl connectHost(final SmbResourceLocatorImpl loc, final String host) throws IOException { return connectHost(loc, host, null); } /** * * @param loc * @param host * @param referral * @return tree handle * @throws IOException */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
lenient().when(cfg.isTraceResourceUsage()).thenReturn(false); // Prepare two separate tree mocks but with same tree id SmbTreeHandleImpl tA = mock(SmbTreeHandleImpl.class); SmbTreeHandleImpl tB = mock(SmbTreeHandleImpl.class); lenient().when(tA.acquire()).thenReturn(tA); lenient().when(tB.acquire()).thenReturn(tB); lenient().when(tA.getTreeId()).thenReturn(treeId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
private volatile boolean open = true; private SmbFileHandleImpl handle; private SmbPipeOutputStream output; private SmbPipeInputStream input; private final String uncPath; private SmbTreeHandleImpl treeHandle; private final int sharing = SmbConstants.DEFAULT_SHARING; /** * @param pipe */ public SmbPipeHandleImpl(final SmbNamedPipe pipe) { this.pipe = pipe;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
// Impl case delegates to treeConnection.isSame SmbTreeConnection otherConn = mock(SmbTreeConnection.class); when(otherConn.acquire()).thenReturn(otherConn); SmbTreeHandleImpl other = new SmbTreeHandleImpl(resourceLoc, otherConn); when(treeConnection.isSame(otherConn)).thenReturn(true, false); assertTrue(handle.isSameTree(other)); assertFalse(handle.isSameTree(other));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
if (rpc.retval != 0) { throw new SmbException(rpc.retval, true); } return rpc.getEntries(); } } static FileEntry[] doNetShareEnum(final SmbTreeHandleImpl th) throws CIFSException { final SmbComTransaction req = new NetShareEnum(th.getConfig()); final SmbComTransactionResponse resp = new NetShareEnumResponse(th.getConfig()); th.send(req, resp);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
.thenReturn(resp); setTree(c, tree); // Override connectHost to avoid actual network connection on retry doAnswer(invocation -> { SmbTreeHandleImpl handle = mock(SmbTreeHandleImpl.class); // Re-set the same tree to continue using our mock setTree(c, tree); return handle; }).when(c).connectHost(any(), anyString());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
} @Test void testConstructorWithSmbFileOnly() throws IOException, CIFSException { // Given // Mock the AutoCloseable tree handle behavior SmbTreeHandleImpl autoCloseableMockTreeHandle = mock(SmbTreeHandleImpl.class); when(mockFile.ensureTreeConnected()).thenReturn(autoCloseableMockTreeHandle); when(autoCloseableMockTreeHandle.isSMB2()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
* @param resp * @throws SmbException */ static void copyFile(final SmbFile src, final SmbFile dest, final byte[][] b, final int bsize, final WriterThread w, final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException { if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) { try { serverSideCopy(src, dest, sh, dh, false); return;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0)