Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 34 of 34 for Capability (0.73 sec)

  1. src/main/java/jcifs/smb/SmbTreeConnection.java

            }
            return null;
        }
    
        /**
         *
         * Only call this method while holding a tree handle
         *
         * @param cap
         * @return whether the capability is available
         * @throws SmbException
         */
        public boolean hasCapability(final int cap) throws SmbException {
            try (SmbSessionImpl s = getSession()) {
                if (s != null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  2. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertTrue((testConfig.getFlags2() & SmbConstants.FLAGS2_UNICODE) != 0);
        }
    
        @Test
        @DisplayName("Test initDefaults with various capability combinations")
        void testInitDefaultsWithCapabilityCombinations() throws CIFSException {
            BaseConfiguration testConfig = new BaseConfiguration(false);
            testConfig.useNTSmbs = true;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            raf.setLength(100L);
    
            verify(tree, times(1)).send(any(Smb2SetInfoRequest.class), eq(RequestParam.NO_RETRY));
        }
    
        @Test
        @DisplayName("setLength(): NT SMBs capability uses Trans2SetFileInformation")
        void setLength_ntsmbs_usesTrans2() throws Exception {
            SmbRandomAccessFile raf = newInstance("rw", false, true, false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. docs/smb3-features/02-persistent-handles-design.md

            assertEquals("test data", new String(buffer));
        }
    }
    
    @Test
    public void testPersistentHandleSurvivesReboot() throws Exception {
        // This test requires special setup with server reboot capability
        CIFSContext context = getTestContext();
        context.getConfig().setProperty("jcifs.smb.client.usePersistentHandles", "true");
        
        SmbFile file = new SmbFile("smb://server/share/persistent.txt", context);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
Back to top