Package org.eclipse.hono.util
Class Hostnames
- java.lang.Object
-
- org.eclipse.hono.util.Hostnames
-
public final class Hostnames extends Object
Helper class for working with hostnames.
-
-
Method Detail
-
getHostname
public static String getHostname()
Return the hostname.This method tries to get the hostname of the machine. It will try different approaches.
- Returns:
- The hostname, but never
null
.
-
-