Class IpUtil


  • public class IpUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IpUtil()  
    • Constructor Detail

      • IpUtil

        public IpUtil()
    • Method Detail

      • isLocalhostOrLoopback

        public static boolean isLocalhostOrLoopback​(java.net.URL url)
      • isLocalhostOrLoopback

        public static boolean isLocalhostOrLoopback​(java.net.URI uri)
      • isLocalhostOrLoopback

        static boolean isLocalhostOrLoopback​(java.lang.String host)
        Parameters:
        host - host string to verify
        Returns:
        true if the given host string is blank or represents or resolves to the hostname or the IP address of localhost or the loopback address.