Class IpUtils


  • public final class IpUtils
    extends java.lang.Object
    The type Ip utils.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getHost()
      Gets host.
      static java.lang.String getHost​(java.lang.String filterHost)
      Gets host.
      static boolean isCompleteHost​(java.lang.String host)
      Judge whether host is complete.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHost

        public static java.lang.String getHost()
        Gets host.
        Returns:
        the host
      • getHost

        public static java.lang.String getHost​(java.lang.String filterHost)
        Gets host.
        Parameters:
        filterHost - host filterHost str
        Returns:
        the host
      • isCompleteHost

        public static boolean isCompleteHost​(java.lang.String host)
        Judge whether host is complete.
        Parameters:
        host - host ip
        Returns:
        boolean