- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for getUrlHost (0.06 seconds)
-
src/main/java/org/codelibs/fess/util/IpAddressUtil.java
* For IPv4 addresses, returns the address as-is. * * @param address the InetAddress to format * @return the URL-safe host string */ public static String getUrlHost(final InetAddress address) { if (address == null) { return null; } if (address instanceof Inet6Address) { final String hostAddress = address.getHostAddress();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 06 08:31:03 GMT 2025 - 9.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/IpAddressUtilTest.java
assertEquals("127.0.0.1", IpAddressUtil.getUrlHost(ipv4Localhost)); // IPv6 localhost InetAddress ipv6Localhost = InetAddress.getByName("::1"); assertEquals("[::1]", IpAddressUtil.getUrlHost(ipv6Localhost)); // Null assertNull(IpAddressUtil.getUrlHost(null)); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 06 08:31:03 GMT 2025 - 8.9K bytes - Click Count (0)