- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 252 for SHARE (0.22 sec)
-
src/test/java/jcifs/internal/TreeConnectResponseTest.java
@Test @DisplayName("Should handle share type") void testShareType() throws Exception { // Test DISK share type setPrivateField(response, "shareType", Smb2TreeConnectResponse.SMB2_SHARE_TYPE_DISK); assertEquals(Smb2TreeConnectResponse.SMB2_SHARE_TYPE_DISK, response.getShareType(), "Should handle DISK share type"); // Test PIPE share type
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java
*/ public class SmbShareInfo implements FileEntry { /** * The network name of the share. */ protected String netName; /** * The type of the share (e.g., disk, printer, IPC). */ protected int type; /** * The optional comment or description for the share. */ protected String remark; /** * Default constructor for SmbShareInfo. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/TreeConnectResponse.java
* service type, and DFS information for the connected share. * * @author mbechler */ public interface TreeConnectResponse extends CommonServerMessageBlockResponse { /** * Returns the tree identifier (TID) assigned to this tree connection. * * @return tree id */ int getTid(); /** * Returns the service type of the connected share (e.g., A: for disk, LPT1: for printer, IPC for named pipe).
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
static Stream<Arguments> portSpecs() { return Stream.of( // spec, expectedPort Arguments.of("smb://server/share", SmbConstants.DEFAULT_PORT), Arguments.of("smb://server:445/share", 445), Arguments.of("smb://server:139/share", 139)); } @ParameterizedTest(name = "parseURL: {0} -> port {1}") @MethodSource("portSpecs")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/DfsReferral.java
public int pathConsumed; /** Time to live for this referral in seconds */ public long ttl; /** Target server for this referral */ public String server; // Server /** Target share for this referral */ public String share; // Share /** The complete UNC path link */ public String link; /** Path relative to tree from which this referral was thrown */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
void testGetShare() { // Act & Assert assertEquals("share", smbFile.getShare()); } @Test void testGetUncPath() { // Arrange doReturn("\\localhost\share\file.txt").when(smbFile).getUncPath(); // Act & Assert assertEquals("\\localhost\share\file.txt", smbFile.getUncPath()); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
private final List<StackTraceElement[]> releases; private DfsReferralData treeReferral; SmbTreeImpl(final SmbSessionImpl session, final String share, final String service) { this.session = session.acquire(); this.share = share.toUpperCase(); if (service != null && !service.startsWith("??")) { this.service = service; } this.service0 = this.service;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
t1.url = "smb://server1/share/file.txt"; t2.numThreads = 5; t2.url = "smb://server2/share/file.txt"; // Verify independence assertEquals(2, t1.numThreads, "t1 should have its own numThreads value"); assertEquals(5, t2.numThreads, "t2 should have its own numThreads value"); assertEquals("smb://server1/share/file.txt", t1.url, "t1 should have its own URL");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/util/PathValidator.java
throw new SmbException("Invalid server name in UNC path"); } // Validate share name String share = parts[1]; if (share.isEmpty() || share.endsWith("$") && share.length() == 1) { throw new SmbException("Invalid share name in UNC path"); } } /** * Validate individual path components */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
() -> new SmbFileHandleImpl(cfg, new byte[] { 1, 2 }, null, "//server/share", 0, 0, 0, 0, 0L)); } @Test @DisplayName("Constructor with null cfg throws NPE") void constructor_nullCfg_throwsNPE() { stubValidTree(7L, true, true); assertThrows(NullPointerException.class, () -> new SmbFileHandleImpl(null, 42, tree, "//server/share", 0, 0, 0, 0, 0L)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0)