Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for SmbTreeHandleImpl (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/smb/SmbPipeOutputStream.java

        private final SmbPipeHandleImpl handle;
    
        /**
         * @param handle
         * @throws SmbException
         */
        SmbPipeOutputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException {
            super(handle.getPipe(), th, null, 0, 0, 0);
            this.handle = handle;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbFileOutputStream#isOpen()
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileHandleImpl.java

        private final Configuration cfg;
        private final int fid;
        private final byte[] fileId;
        private boolean open = true;
        private final long tree_num; // for checking whether the tree changed
        private SmbTreeHandleImpl tree;
    
        private final AtomicLong usageCount = new AtomicLong(1);
        private final int flags;
        private final int access;
        private final int attrs;
        private final int options;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  9. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

            if (!smbFile.isDirectory()) {
                throw new SmbException("Not a directory: " + smbFile.getPath());
            }
    
            try (SmbTreeHandleImpl th = smbFile.ensureTreeConnected()) {
                // Check if we can use directory leasing
                DirectoryLeaseManager dirManager = getDirectoryLeaseManager(th);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. 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)
Back to top