Class HostUtil


  • public final class HostUtil
    extends java.lang.Object
    This class contains basic helper methods for the Host.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String localHostName  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HostUtil()
      This default constructor is to hide this class from initialization through other classes.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getLocalHostName()
      This method returns the name of the current Host, if this name cannot be determined, localhost will be returned.
      • Methods inherited from class java.lang.Object

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

      • localHostName

        private static java.lang.String localHostName
    • Constructor Detail

      • HostUtil

        private HostUtil()
        This default constructor is to hide this class from initialization through other classes.
    • Method Detail

      • getLocalHostName

        public static java.lang.String getLocalHostName()
        This method returns the name of the current Host, if this name cannot be determined, localhost will be returned.
        Returns:
        The name of the current "local" Host.