Package io.jans.net
Class InetAddressUtility
java.lang.Object
io.jans.net.InetAddressUtility
- Author:
- Yuriy Movchan Date: 05/20/2015
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetIpAddress(jakarta.servlet.http.HttpServletRequest httpRequest) static Stringstatic booleanisIpAddress(String ipAddress) Determine if the given string is a valid IPv4 or IPv6 address
-
Method Details
-
isIpAddress
Determine if the given string is a valid IPv4 or IPv6 address -
getMACAddressOrNull
-
getIpAddress
- Parameters:
httpRequest- interface to provide request information for HTTP servlets.- Returns:
- IP address of client
- See Also:
-