List of utility methods to do Host Name Get
String | getShortHostname() get Short Hostname return extractShortHostname(getHostname());
|
String | getTimerServerHost() 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 { ... |