Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 178 for _getConfig (0.05 sec)

  1. src/main/java/jcifs/context/BaseContext.java

        public SmbTransportPool getTransportPool() {
            return this.transportPool;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getConfig()
         */
        @Override
        public Configuration getConfig() {
            return this.config;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getDfs()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. docs/smb3-features/02-persistent-handles-design.md

            }
        }
        
        // Request new durable handle if configured
        if (context.getConfig().isUseDurableHandles()) {
            requestDurableHandle();
        }
        
        // ... rest of normal connection logic ...
    }
    
    private void requestDurableHandle() {
        Configuration config = context.getConfig();
        
        // Determine handle type based on configuration and server capabilities
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

            NameServiceClient mockNameServiceClient = mock(NameServiceClient.class);
            NetbiosAddress mockHost = mock(NetbiosAddress.class);
    
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        private NameServiceClientImpl nameServiceClient;
    
        @BeforeEach
        void setUp() throws UnknownHostException {
            // Configure mock context with fast timeouts
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            // Setup configuration with minimal timeouts for fast testing
            when(mockConfig.getNetbiosSoTimeout()).thenReturn(100); // Very short timeout
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // Then
            assertNotNull(response);
            assertTrue(response instanceof Smb2SessionSetupResponse);
            // The constructor calls getConfig once, createResponse calls it once
            verify(mockContext, times(2)).getConfig();
        }
    
        @Test
        @DisplayName("Should set session binding flag correctly")
        void testSetSessionBinding() throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbSessionImplTest.java

        @DisplayName("getters and basic state (happy path)")
        void testGettersAndState() {
            SmbSessionImpl session = newSession();
    
            // Basic getters
            assertSame(configuration, session.getConfig(), "getConfig delegates to transportContext");
            assertEquals("EXAMPLE", session.getTargetDomain());
            assertEquals("server.example", session.getTargetHost());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

        @BeforeEach
        void setUp() {
            // Common setup for most tests
            lenient().when(mockFileHandle.getTree()).thenReturn(mockTreeHandle);
            lenient().when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
        void testWriteSingleByte() throws IOException, CIFSException {
            // Given
            when(mockTreeHandle.isSMB2()).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  8. docs/smb3-features/05-rdma-smb-direct-design.md

    public void testRdmaFallbackToTcp() throws Exception {
        // Test that we properly fall back to TCP when RDMA is not available
        CIFSContext context = getTestContext();
        context.getConfig().setProperty("jcifs.smb.client.useRDMA", "true");
        context.getConfig().setProperty("jcifs.smb.client.rdmaProvider", "nonexistent");
        
        SmbFile file = new SmbFile("smb://server/share/test.txt", context);
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

         */
        public SmbComTreeConnectAndX(final CIFSContext ctx, final ServerData server, final String path, final String service,
                final ServerMessageBlock andx) {
            super(ctx.getConfig(), SMB_COM_TREE_CONNECT_ANDX, andx);
            this.ctx = ctx;
            this.server = server;
            this.path = path;
            this.service = service;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/ntlmssp/Type1Message.java

         * environment.
         *
         * @param tc
         *            context to use
         */
        public Type1Message(final CIFSContext tc) {
            this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName());
        }
    
        /**
         * Creates a Type-1 message with the specified parameters.
         *
         * @param tc
         *            context to use
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top