Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getPathConsumed (0.08 sec)

  1. src/test/java/jcifs/tests/DfsTest.java

            assertEquals(dfsTestSharePath.length() - 1, ref.getPathConsumed());
    
            DfsReferralData ref2 = doResolve(dfsTestSharePath, "", true, true);
    
            assertNotNull(ref2);
            assertEquals(getTestDfsTargetServer().toLowerCase(Locale.ROOT), ref2.getServer().toLowerCase(Locale.ROOT));
            assertEquals(dfsTestSharePath.length() - 1, ref2.getPathConsumed());
        }
    
    
        @Test
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 13.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/DfsImpl.java

                        if ( dr.getPathConsumed() > ( path != null ? path.length() : 0 ) ) {
                            log.error("Consumed more than we provided");
                        }
    
                        link = path != null && dr.getPathConsumed() > 0 ? path.substring(0, dr.getPathConsumed()) : "\\";
                        dr.setLink(link);
                        if ( log.isTraceEnabled() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

            return Objects.equals(getServer(), other.getServer()) && Objects.equals(getShare(), other.getShare())
                    && Objects.equals(getPath(), other.getPath()) && Objects.equals(getPathConsumed(), other.getPathConsumed());
        }
    
    
        /**
         * @param ref
         * @param reqPath
         * @param expire
         * @param consumed
         * @return referral data
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:13:49 UTC 2021
    - 11K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/FileLocationTest.java

                return this.share;
            }
    
    
            /**
             * {@inheritDoc}
             *
             * @see jcifs.DfsReferralData#getPathConsumed()
             */
            @Override
            public int getPathConsumed () {
                return this.pathConsumed;
            }
    
    
            /**
             * {@inheritDoc}
             *
             * @see jcifs.DfsReferralData#getPath()
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

            if ( Objects.equals(this.dfsReferral, dr) ) {
                return this.unc;
            }
            this.dfsReferral = dr;
    
            String oldUncPath = getUNCPath();
            int pathConsumed = dr.getPathConsumed();
            if ( pathConsumed < 0 ) {
                log.warn("Path consumed out of range " + pathConsumed);
                pathConsumed = 0;
            }
            else if ( pathConsumed > this.unc.length() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 20 08:24:53 UTC 2019
    - 23.9K bytes
    - Viewed (0)
Back to top