Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 80 for FileId (0.04 seconds)

  1. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                fileIdField.setAccessible(true);
                byte[] actualFileId = (byte[]) fileIdField.get(request);
                assertArrayEquals(expectedFileId, actualFileId);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test constructor with Configuration and FileId")
        void testConstructorWithConfigAndFileId() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

        @Override
        public final int getAttributes() {
            return getFileAttributes();
        }
    
        /**
         * Get the unique file identifier
         * @return the fileId
         */
        public final byte[] getFileId() {
            return this.fileId;
        }
    
        /**
         * Get the file name
         * @return the fileName
         */
        public final String getFileName() {
            return this.fileName;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

         */
        public int getIoctlFlags() {
            return this.ioctlFlags;
        }
    
        /**
         * Gets the file identifier from the response.
         *
         * @return the fileId
         */
        public byte[] getFileId() {
            return this.fileId;
        }
    
        /**
         * Gets the decoded output data from the response.
         *
         * @return the outputData
         */
        public Decodable getOutputData() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

            // Verify that default file ID is set
            byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID;
            Field fileIdField;
            try {
                fileIdField = Smb2QueryInfoRequest.class.getDeclaredField("fileId");
                fileIdField.setAccessible(true);
                byte[] actualFileId = (byte[]) fileIdField.get(request);
                assertArrayEquals(expectedFileId, actualFileId);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception {
            when(handle.isValid()).thenReturn(true);
            when(handle.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(mock(Configuration.class));
            when(handle.getFileId()).thenReturn(fileId);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Constructor should initialize with config, fileId and fileName")
            void testConstructorWithAllParameters() {
                // When
                Smb2CloseResponse closeResponse = new Smb2CloseResponse(mockConfig, testFileId, testFileName);
    
                // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 26.9K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                    this.fileId != null ? Hexdump.toHexString(this.fileId) : this.fid, this.tree_num, this.flags, this.access, this.attrs,
                    this.options);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#hashCode()
         */
        @Override
        public int hashCode() {
            if (this.fileId != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.4K bytes
    - Click Count (1)
  8. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        }
    
        /**
         * Add a durable handle reconnect context to this request
         * @param fileId the 16-byte file ID from the previous open
         */
        public void addDurableHandleReconnectContext(byte[] fileId) {
            addCreateContext(new jcifs.internal.smb2.persistent.DurableHandleReconnect(fileId));
        }
    
        /**
         * Check if this request has durable handle contexts
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 22.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE);
            byte[] newFileId = new byte[16];
            Arrays.fill(newFileId, (byte) 0x55);
    
            request.setFileId(newFileId);
            // FileId is set internally
            assertNotNull(request);
        }
    
        @Test
        @DisplayName("Test createResponse method")
        void testCreateResponse() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            DirFileEntryEnumIterator2 it = new DirFileEntryEnumIterator2(tree, parent, "*", null, 0);
    
            // Assert: enumeration is empty and close produced no extra close call (no fileId opened)
            assertFalse(it.hasNext(), "Empty listing should produce no elements");
            it.close();
            // No close should be sent because directory was never successfully opened
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.7K bytes
    - Click Count (0)
Back to Top