Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for setSession (0.06 sec)

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

            this.resourceLoc = resourceLoc;
            this.treeConnection = treeConnection.acquire();
        }
    
        @Override
        public SmbSessionImpl getSession() {
            return this.treeConnection.getSession();
        }
    
        @Override
        public void ensureDFSResolved() throws CIFSException {
            this.treeConnection.ensureDFSResolved(this.resourceLoc);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

        }
    
        @Test
        @DisplayName("getSession(): may return null and should be observed as such")
        void getSession_returnsNull() {
            // Arrange
            when(handle.getSession()).thenReturn(null);
    
            // Act
            SmbSession result = handle.getSession();
    
            // Assert
            assertNull(result);
            verify(handle).getSession();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeConnection.java

         *
         * @return session that this file has been loaded through
         */
        @SuppressWarnings("resource")
        public SmbSessionImpl getSession() {
            final SmbTreeImpl t = getTreeInternal();
            if (t != null) {
                return t.getSession();
            }
            return null;
        }
    
        /**
         *
         * Only call this method while holding a tree handle
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

        }
    
        @Test
        @DisplayName("getSession returns underlying session from tree connection")
        void getSessionReturnsUnderlying() {
            // Verifies getSession() exposes the session provided by the connection
            assertSame(session, handle.getSession());
            verify(treeConnection).getSession();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/http/NetworkExplorerTest.java

            // Setup request session
            lenient().when(request.getSession()).thenReturn(session);
            lenient().when(request.getSession(false)).thenReturn(session);
            lenient().when(request.getSession(true)).thenReturn(session);
    
            // Setup default session attribute behavior
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmServletTest.java

        @Test
        void testService_NoAuthHeader_NoSession() throws ServletException, IOException {
            ntlmServlet.init(servletConfig);
            when(request.getHeader("Authorization")).thenReturn(null);
            when(request.getSession(false)).thenReturn(null);
            lenient().when(request.isSecure()).thenReturn(true);
    
            ntlmServlet.service(request, response);
    
            verify(response).setHeader("WWW-Authenticate", "NTLM");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

                    resp.flushBuffer();
                    return null;
                }
                req.getSession().setAttribute("NtlmHttpAuth", ntlm);
            } else if (!skipAuthentication) {
                final HttpSession ssn = req.getSession(false);
                if (ssn == null || (ntlm = (NtlmPasswordAuthentication) ssn.getAttribute("NtlmHttpAuth")) == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeImpl.java

                return transport.getNegotiateResponse().isDFSSupported();
            }
        }
    
        /**
         * @return the session this tree is connected in
         */
        public SmbSessionImpl getSession() {
            return this.session.acquire();
        }
    
        /**
         * @return the tid
         */
        public int getTid() {
            return this.tid;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  9. docs/smb3-features/02-persistent-handles-design.md

        
        // Determine handle type based on configuration and server capabilities
        if (tree.getSession().supports(SMB3_0) && config.isUsePersistentHandles()) {
            handleType = HandleType.PERSISTENT;
        } else if (tree.getSession().supports(SMB3_0)) {
            handleType = HandleType.DURABLE_V2;
        } else if (tree.getSession().supports(SMB2_1)) {
            handleType = HandleType.DURABLE_V1;
        } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmHttpFilter.java

                    resp.flushBuffer();
                    return null;
                }
                req.getSession().setAttribute("NtlmHttpAuth", ntlm);
            } else if (!skipAuthentication) {
                final HttpSession ssn = req.getSession(false);
                if (ssn == null || (ntlm = (NtlmPasswordAuthentication) ssn.getAttribute("NtlmHttpAuth")) == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top