Package org.opennms.install
Class IPv6Validator
- java.lang.Object
-
- org.opennms.install.IPv6Validator
-
public class IPv6Validator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IPv6Validator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPlatformIPv6Ready()
Checks if the platform is IPv6 ready.boolean
keyExists(com.sun.jna.platform.win32.WinReg.HKEY root, java.lang.String key)
static void
main(java.lang.String... args)
-
-
-
Method Detail
-
isPlatformIPv6Ready
public boolean isPlatformIPv6Ready()
Checks if the platform is IPv6 ready. For non windows platforms it always returns true. For windows platforms it is version dependant. The following table assigns the internal microsoft version to the windows release. Operating system Version number ----------------- -------------- Windows 8.1 6.3 Windows Server 2012 R2 6.3 Windows 8 6.2 Windows Server 2012 6.2 Windows 7 6.1 Windows Server 2008 R2 6.1 Windows Server 2008 6.0 Windows Vista 6.0 Windows Server 2003 R2 5.2 Windows Server 2003 5.2 Windows XP 64-Bit Edition 5.2 Windows XP 5.1 Windows 2000 5.0 Source: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx- Returns:
- true if Platform is not windows or if the provided windows system supports IPv6.
-
keyExists
public boolean keyExists(com.sun.jna.platform.win32.WinReg.HKEY root, java.lang.String key)
-
main
public static void main(java.lang.String... args) throws java.io.IOException
- Throws:
java.io.IOException
-
-