Package com.cedarsoftware.util
Class SystemUtilities.NetworkInfo
java.lang.Object
com.cedarsoftware.util.SystemUtilities.NetworkInfo
- Enclosing class:
- SystemUtilities
Describes a network interface present on the host system.
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkInfo
(String name, String displayName, List<InetAddress> addresses, boolean loopback) Construct a newNetworkInfo
instance. -
Method Summary
-
Constructor Details
-
NetworkInfo
Construct a newNetworkInfo
instance.- Parameters:
name
- the interface namedisplayName
- the human readable display nameaddresses
- all addresses bound to the interfaceloopback
- whether this interface represents the loopback device
-
-
Method Details
-
getName
- Returns:
- the interface name
-
getDisplayName
- Returns:
- the user friendly display name
-
getAddresses
- Returns:
- all addresses associated with the interface
-
isLoopback
public boolean isLoopback()- Returns:
true
if this interface is a loopback interface
-