Java Utililty Methods Host Name Get

List of utility methods to do Host Name Get

Description

The list of methods to do Host Name Get are organized into topic(s).

Method

StringgetShortHostname()
get Short Hostname
return extractShortHostname(getHostname());
StringgetTimerServerHost()
This method returns the hostname of the timer server, which is needed for the LOCKSS manifest page, to display the OAI URL for lockss harvesting.
if (isTimerServer()) {
    try {
        return InetAddress.getLocalHost().getCanonicalHostName();
    } catch (UnknownHostException e) {
        e.printStackTrace();
        return null;
} else {
...