Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for SmbTree (0.6 sec)

  1. src/main/java/jcifs/smb/SmbTreeImpl.java

        }
    
        public SmbTreeImpl acquire() {
            return acquire(true);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTree#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends SmbTree> T unwrap(final Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeImplTest.java

            assertEquals(tree, unwrapped);
            // Test unwrapping to a non-assignable type should fail
            assertThrows(ClassCastException.class, () -> {
                // Create a mock class that extends SmbTree but is not assignable from SmbTreeImpl
                class CustomSmbTree extends SmbTreeImpl {
                    CustomSmbTree() {
                        super(session, "SHARE", "A:");
                    }
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                result[ri] = "";
                ri++;
            }
        }
    
        DfsReferral getDfsReferrals(final NtlmPasswordAuthentication auth, final String path, int rn) throws SmbException {
            final SmbTree ipc = getSmbSession(auth).getSmbTree("IPC$", null);
            final Trans2GetDfsReferralResponse resp = new Trans2GetDfsReferralResponse();
            ipc.send(new Trans2GetDfsReferral(path), resp);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  4. docs/smb3-features/06-witness-protocol-design.md

    @Override
    public void logoff() throws IOException {
        if (witnessClient != null) {
            witnessClient.close();
        }
        super.logoff();
    }
    ```
    
    ### 5.2 Tree Connection Integration
    ```java
    // In SmbTree.java
    public void connectWithWitnessSupport() throws IOException {
        // Perform normal tree connection
        super.connect();
        
        // Register for witness notifications for this share
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbFile.java

        /**
         * DFS resolver instance
         */
        protected static Dfs dfs;
    
        NtlmPasswordAuthentication auth; // Cannot be null
        SmbTree tree = null; // Initially null
        String unc; // Initially null; set by getUncPath; never ends with '/'
        int fid; // Initially 0; set by open()
        int type;
        boolean opened;
        int tree_num;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
Back to top