Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getNbtByName (0.13 sec)

  1. src/test/java/jcifs/NameServiceClientTest.java

            when(nameServiceClient.getNbtByName(host, type, scope, svr)).thenReturn(expectedAddress);
    
            // Act
            NetbiosAddress actualAddress = nameServiceClient.getNbtByName(host, type, scope, svr);
    
            // Assert
            assertNotNull(actualAddress);
            assertEquals(expectedAddress, actualAddress);
            verify(nameServiceClient, times(1)).getNbtByName(host, type, scope, svr);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            // When/Then - Should throw UnknownHostException quickly due to short timeouts
            UnknownHostException exception = assertThrows(UnknownHostException.class, () -> {
                nameServiceClient.getNbtByName("NONEXISTENT-FAST-FAIL");
            }, "Should throw UnknownHostException for non-existent NetBIOS name");
    
            // Verify the exception message indicates name resolution failure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NameServiceClientImpl.java

        }
    
        @Override
        public NbtAddress getNbtByName(final String host) throws UnknownHostException {
            return getNbtByName(host, 0x00, null);
        }
    
        @Override
        public NbtAddress getNbtByName(final String host, final int type, final String scope) throws UnknownHostException {
            return getNbtByName(host, type, scope, null);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/NameServiceClient.java

         *            server to query
         * @return the resolved address
         * @throws java.net.UnknownHostException
         *             if there is an error resolving the name
         */
        NetbiosAddress getNbtByName(String host, int type, String scope, InetAddress svr) throws UnknownHostException;
    
        /**
         * Determines the address of a host given it's host name. NetBIOS
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NtlmServlet.java

            if (msg != null && (msg.startsWith("NTLM ") || offerBasic && msg.startsWith("Basic "))) {
                if (this.loadBalance) {
                    dc = new UniAddress(getTransportContext().getNameServiceClient().getNbtByName(this.domainController, 0x1C, null));
                } else {
                    dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
                }
                NtlmPasswordAuthentication ntlm;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (1)
  6. src/main/java/jcifs/http/NetworkExplorer.java

                    final NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient();
                    if (pathInfo == null || server == null) {
                        final String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress();
                        dc = nameServiceClient.getByName(mb);
                    } else {
                        dc = nameServiceClient.getByName(server, possibleWorkgroup);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                        }
                    } else if (host.length() == 0) {
                        try {
                            final Address addr = this.ctx.getNameServiceClient().getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null);
                            this.addresses = new UniAddress[1];
                            this.addresses[0] = this.ctx.getNameServiceClient().getByName(addr.getHostAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top