org.apache.ivy.util

Class HostUtil

public final class HostUtil extends Object

This class contains basic helper methods for the Host.
Method Summary
static StringgetLocalHostName()
This method returns the name of the current Host, if this name cannot be determined, localhost will be returned.

Method Detail

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.