- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for isWorkgroup (0.19 seconds)
-
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertEquals(SmbConstants.TYPE_SERVER, server.getType()); } @Test @DisplayName("isWorkgroup true for empty host or NetBIOS 0x1d/0x1b") void testIsWorkgroup() throws Exception { assertTrue(locator("smb:///share").isWorkgroup()); // empty host Address addr = mock(Address.class); NetbiosAddress nb = mock(NetbiosAddress.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceLocatorTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 23.6K bytes - Click Count (0) -
src/main/java/jcifs/SmbResourceLocator.java
* Determines whether this resource represents a workgroup reference. * * @return whether this is a workgroup reference * @throws CIFSException if the determination cannot be made */ boolean isWorkgroup() throws CIFSException; /** * Determines whether this resource represents the root of the SMB hierarchy. * * @return whether this is a root resource */ boolean isRoot();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFile.java
this(isWorkgroup(context) ? new URL(null, "smb://" + checkName(name) + "/", context.getContext().getUrlHandler()) : new URL(context.getLocator().getURL(), encodeRelativePath(checkName(name)) + ((attributes & ATTR_DIRECTORY) > 0 ? "/" : "")), context.getContext()); if (!isWorkgroup(context)) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 103.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
when(parent.getContext()).thenReturn(this.ctx); when(parent.getLocator()).thenReturn(parentLocator); // Make the parent appear as a workgroup to use the simpler URL code-path when(parentLocator.isWorkgroup()).thenReturn(true); } /** Simple implementation of FileEntry for controlled inputs in tests. */ private static final class StubFileEntry implements FileEntry { private final String name;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 112.2K bytes - Click Count (0)