Package org.apache.ivy.util
Class HostUtil
java.lang.Object
org.apache.ivy.util.HostUtil
This class contains basic helper methods for the Host.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
HostUtil()
This default constructor is to hide this class from initialization through other classes. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
This method returns the name of the current Host, if this name cannot be determined, localhost will be returned.
-
Field Details
-
localHostName
-
-
Constructor Details
-
HostUtil
private HostUtil()This default constructor is to hide this class from initialization through other classes.
-
-
Method Details
-
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.
-