Class HostUtil

java.lang.Object
org.apache.ivy.util.HostUtil

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

    Fields
    Modifier and Type
    Field
    Description
    private static String
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static String
    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 Details

    • localHostName

      private static String localHostName
  • Constructor Details

    • HostUtil

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

    • getLocalHostName

      public static 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.