Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 67 for setHostname (0.08 seconds)

  1. src/test/java/jcifs/smb1/UniAddressTest.java

        }
    
        @Test
        void getHostNameDelegatesToWrappedInetAddress() {
            InetAddress dummy = mock(InetAddress.class);
            when(dummy.getHostName()).thenReturn("host.example.com");
            UniAddress ua = new UniAddress(dummy);
            assertEquals("host.example.com", ua.getHostName(), "should forward hostName to underlying InetAddress");
        }
    
        @Test
        void getHostAddressDelegatesToWrappedInetAddress() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. src/main/java/jcifs/netbios/UniAddress.java

         *
         * @return the hostname associated with the address
         */
        @Override
        public String getHostName() {
            if (this.addr instanceof NbtAddress) {
                return ((NbtAddress) this.addr).getHostName();
            }
            return ((InetAddress) this.addr).getHostName();
        }
    
        /**
         * Return the IP address as text such as "192.168.1.15".
         *
         * @return the ip address
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/netbios/NbtAddressTest.java

            // Test getHostName when hostname is known
            mockName = new Name(mockConfig, "KNOWNHOST", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            assertEquals("KNOWNHOST", nbtAddress.getHostName());
        }
    
        @Test
        void testGetHostName_UnknownHost() {
            // Test getHostName when hostname is unknown, should return IP address
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/exentity/FileConfig.java

            for (final FileAuthentication fileAuth : fileAuthList) {
                if (logger.isDebugEnabled()) {
                    logger.debug("FileAuthentication: " + fileAuth.getProtocolScheme() + " " + fileAuth.getHostname() + ":" + fileAuth.getPort()
                            + " " + fileAuth.getUsername());
                }
                if (Constants.SAMBA.equals(fileAuth.getProtocolScheme())) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Nov 24 02:07:40 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/netbios/LmhostsTest.java

            assertNotNull(result);
            assertEquals("TESTHOST", result.getHostName());
    
            // Test second host
            result = lmhosts.getByName("SERVER01", mockContext);
            assertNotNull(result);
            assertEquals("SERVER01", result.getHostName());
        }
    
        @Test
        void testGetByNameCaching() throws IOException {
            // Create a temporary lmhosts file
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/opensearch/config/exentity/WebAuthentication.java

            // host/port/realm: only set if not blank (null means "any" - AuthScope.ANY equivalent)
            if (StringUtil.isNotBlank(getHostname())) {
                config.setHost(getHostname());
            }
            if (getPort() != null) {
                config.setPort(getPort());
            }
            if (StringUtil.isNotBlank(getAuthRealm())) {
                config.setRealm(getAuthRealm());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 10 01:38:30 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/resources/forbidden/jdk-signatures.txt

    @defaultMessage avoid DNS lookups by accident: if you have a valid reason, then @SuppressWarnings with that reason so its completely clear
    java.net.InetAddress#getHostName()
    java.net.InetAddress#getCanonicalHostName()
    
    java.net.InetSocketAddress#getHostName() @ Use getHostString() instead, which avoids a DNS lookup
    
    @defaultMessage Do not violate java's access system
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

            when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost);
            when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME);
            when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN);
            when(mockConfig.isUseUnicode()).thenReturn(true);
    
            return mockContext;
        }
    
        @Nested
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/UniAddress.java

         *
         * @return the hostname of this address
         */
    
        public String getHostName() {
            if (addr instanceof NbtAddress) {
                return ((NbtAddress) addr).getHostName();
            }
            return ((InetAddress) addr).getHostName();
        }
    
        /**
         * Return the IP address as text such as "192.168.1.15".
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17K bytes
    - Click Count (0)
  10. src/main/java/jcifs/netbios/NbtAddress.java

                    if (this.getNameType() == 0x1D) {
                        for (final NetbiosAddress addr : addrs) {
                            if (addr.getNameType() == 0x20) {
                                return addr.getHostName();
                            }
                        }
                        return null;
                    }
                    if (this.isDataFromNodeStatus) {
                        /*
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.1K bytes
    - Click Count (0)
Back to Top