- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for compressIPv6 (0.05 seconds)
-
src/main/java/org/codelibs/fess/util/IpAddressUtil.java
* For example, "0:0:0:0:0:0:0:1" becomes "::1" * * @param ipv6Address the IPv6 address string to compress * @return the compressed IPv6 address string */ protected static String compressIPv6(final String ipv6Address) { if (ipv6Address == null || ipv6Address.isEmpty()) { return ipv6Address; } // Expand :: if present to get full address for normalization
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
@Test public void testCompressIPv6() { // Test IPv6 compression (using reflection to access protected method) try { java.lang.reflect.Method method = IpAddressUtil.class.getDeclaredMethod("compressIPv6", String.class); method.setAccessible(true); // Compressed forms should remain unchanged assertEquals("::1", method.invoke(null, "::1"));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)