Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 470 for shared (0.04 sec)

  1. src/test/java/jcifs/smb/SmbSessionInternalTest.java

                "share, " // empty service
        })
        void getSmbTree_invalid(String share, String service) {
            doThrow(new IllegalArgumentException("invalid share/service")).when(session).getSmbTree(eq(share), eq(service));
    
            IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> session.getSmbTree(share, service));
            assertTrue(ex.getMessage().contains("invalid"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbTree.java

         */
        int connectionState;
        int tid;
    
        String share;
        String service = "?????";
        String service0;
        SmbSession session;
        boolean inDfs, inDomainDfs;
        int tree_num; // used by SmbFile.isOpen
    
        SmbTree(final SmbSession session, final String share, final String service) {
            this.session = session;
            this.share = share.toUpperCase();
            if (service != null && !service.startsWith("??")) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/NetworkExplorer.java

                p++;
            }
            while (p < len && pathInfo.charAt(p) == '/') {
                p++;
            }
            if (p < len) { /* then there must be a share */
                out[i] = '/';
                i++;
                do { /* collect the share name */
                    out[i++] = ch = pathInfo.charAt(p++);
                } while (p < len && ch != '/');
            }
            return new String(out, 0, i);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeImplTest.java

            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            assertNotNull(tree);
            assertEquals("SHARE", tree.getShare());
            assertEquals("A:", tree.getService());
        }
    
        // Test case for the matches method
        @Test
        void testMatches() {
            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            assertTrue(tree.matches("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)
  5. src/main/java/jcifs/http/NetworkExplorer.java

                p++;
            }
            while (p < len && pathInfo.charAt(p) == '/') {
                p++;
            }
            if (p < len) { /* then there must be a share */
                out[i] = '/';
                i++;
                do { /* collect the share name */
                    out[i++] = ch = pathInfo.charAt(p++);
                } while (p < len && ch != '/');
            }
            return new String(out, 0, i);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

                assertEquals("smb1://server/share/", new SmbFile("smb1://server/share/file.txt").getParent());
                // Test parent of a directory
                assertEquals("smb1://server/share/", new SmbFile("smb1://server/share/dir/").getParent());
                // Test parent of a share
                assertEquals("smb1://server/", new SmbFile("smb1://server/share/").getParent());
                // Test parent of a server
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DfsImpl.java

            }
    
            /*
             * Subtract the server and share from the pathConsumed so that
             * it reflects the part of the relative path consumed and not
             * the entire path.
             */
    
            DfsReferralDataInternal next = dri;
            do {
                next.stripPathConsumed(1 + server.length() + 1 + share.length());
                next = next.next();
            } while (next != dri);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                    this.canon = "/" + this.share + "/" + StringUtil.join("/", remainParts) + (trailingSlash ? "/" : "");
                } else {
                    this.unc = "\\";
                    if (this.share != null) {
                        this.canon = "/" + this.share + (trailingSlash ? "/" : "");
                    } else {
                        this.canon = "/";
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/InputValidator.java

            }
        }
    
        /**
         * Validates share name
         *
         * @param share the share name to validate
         * @throws IllegalArgumentException if share name is invalid
         */
        public static void validateShareName(String share) {
            if (share == null || share.isEmpty()) {
                throw new IllegalArgumentException("Share name cannot be null or empty");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            assertTrue(tree.matches("testshare", "TESTSERVICE"));
    
            // Test matching share with null service
            assertTrue(tree.matches("testShare", null));
    
            // Test matching share with service starting with "??"
            assertTrue(tree.matches("testShare", "??otherService"));
    
            // Test non-matching share
            assertFalse(tree.matches("otherShare", "testService"));
    
            // Test non-matching service
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top