Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 105 for referrals (0.35 seconds)

  1. src/main/java/jcifs/smb1/smb1/Dfs.java

                 * longest path in the list of stand-alone referrals.
                 */
                if (referrals != null && now > referrals.expiration) {
                    referrals = null;
                }
                if (referrals == null) {
                    referrals = new CacheEntry(0);
                }
                String key = "\\" + domain + "\\" + root;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/dfs/DfsReferralResponseBuffer.java

            bufferIndex += 2;
            this.tflags = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 4;
    
            this.referrals = new Referral[this.numReferrals];
            for (int ri = 0; ri < this.numReferrals; ri++) {
                this.referrals[ri] = new Referral();
                bufferIndex += this.referrals[ri].decode(buffer, bufferIndex, len);
            }
    
            return bufferIndex - start;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            return buffer;
        }
    
        private byte[] createMinimalDfsReferralBuffer() {
            // Create minimal buffer with no referrals
            byte[] buffer = new byte[8];
    
            // Path consumed (2 bytes)
            SMBUtil.writeInt2(0, buffer, 0);
    
            // Number of referrals (2 bytes) - 0
            SMBUtil.writeInt2(0, buffer, 2);
    
            // Flags (2 bytes)
            SMBUtil.writeInt2(0, buffer, 4);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

            bufferIndex += 2;
            flags = readInt2(buffer, bufferIndex);
            bufferIndex += 4;
    
            referrals = new Referral[numReferrals];
            for (int ri = 0; ri < numReferrals; ri++) {
                referrals[ri] = new Referral();
                bufferIndex += referrals[ri].readWireFormat(buffer, bufferIndex, len);
            }
    
            return bufferIndex - start;
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                assertTrue(result.contains("referrals=["));
                assertFalse(result.contains("referrals=[]"));
            }
        }
    
        @Nested
        @DisplayName("Getter Methods Tests")
        class GetterTests {
    
            @BeforeEach
            void setupBuffer() {
                // Create buffer with 3 v1 referrals
                byte[] testBuffer = new byte[100];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  6. src/main/java/jcifs/DfsReferralData.java

        /**
         * Get the server this referral points to
         *
         * @return the server this referral points to
         */
        String getServer();
    
        /**
         * Get the domain this referral is for
         *
         * @return the domain this referral is for
         */
        String getDomain();
    
        /**
         * Get the share this referral points to
         *
         * @return the share this referral points to
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferral.java

         *
         * @param config the configuration to use
         * @param filename the DFS path to get referrals for
         */
        public Trans2GetDfsReferral(final Configuration config, final String filename) {
            this(config, filename, 3);
        }
    
        /**
         * Constructs a Trans2GetDfsReferral request with specified referral level.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTreeHandleInternal.java

     */
    public interface SmbTreeHandleInternal extends SmbTreeHandle {
    
        /**
         * Releases this tree handle back to the pool for reuse
         */
        void release();
    
        /**
         * Ensures that DFS referrals have been resolved for this tree
         * @throws SmbException if an SMB-specific error occurs
         * @throws CIFSException if a general CIFS error occurs
         */
        void ensureDFSResolved() throws CIFSException;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/DfsImpl.java

             * longest path in the list of stand-alone referrals.
             */
    
            CacheEntry<DfsReferralDataInternal> refs;
            synchronized (this.referralsLock) {
                refs = this.referrals;
                if (refs == null || now > refs.expiration) {
                    refs = new CacheEntry<>(0);
                }
                this.referrals = refs;
            }
            String key = "\\" + domain + "\\" + root;
    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)
  10. src/main/java/jcifs/smb/SmbTransportInternal.java

         */
        boolean ensureConnected() throws IOException;
    
        /**
         * Gets DFS referrals for the specified path.
         *
         * @param ctx the CIFS context
         * @param name the DFS path to resolve
         * @param targetHost the target host name
         * @param targetDomain the target domain
         * @param rn the referral number
         * @return dfs referral
         * @throws SmbException if an SMB error occurs
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
Back to Top