Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 54 for Sethostname (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/org/codelibs/fess/exec/Crawler.java

                }
    
                String hostname = fessConfig.getMailHostname();
                if (StringUtil.isBlank(hostname)) {
                    hostname = ComponentUtil.getSystemHelper().getHostname();
                }
                dataMap.put("hostname", hostname);
    
                logger.debug("\ninfoMap: {}\ndataMap: {}", infoMap, dataMap);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/UniAddressTest.java

                when(mockInetAddress.getHostName()).thenReturn("inet-host");
                UniAddress uniAddress = new UniAddress(mockInetAddress);
                assertEquals("inet-host", uniAddress.getHostName());
            }
    
            @Test
            void shouldReturnNbtAddressHostnameWhenWrappedIsNbtAddress() {
                when(mockNbtAddress.getHostName()).thenReturn("nbt-host");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/PingSearchEngineJobTest.java

                @Override
                public boolean isChangedClusterState(int status) {
                    // State has changed
                    return true;
                }
    
                @Override
                public String getHostname() {
                    return "test-hostname";
                }
            };
    
            FessConfig fessConfig = createTestFessConfig();
    
            // Register components
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/AddressTest.java

        }
    
        @Test
        @DisplayName("getHostName should return valid hostname or address")
        void testGetHostNameContract() {
            // Given
            String expectedHostName = "server.example.com";
            when(mockAddress.getHostName()).thenReturn(expectedHostName);
    
            // When
            String hostName = mockAddress.getHostName();
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top