Class SystemUtilities.NetworkInfo

java.lang.Object
com.cedarsoftware.util.SystemUtilities.NetworkInfo
Enclosing class:
SystemUtilities

public static class SystemUtilities.NetworkInfo extends Object
Describes a network interface present on the host system.
  • Constructor Details

    • NetworkInfo

      public NetworkInfo(String name, String displayName, List<InetAddress> addresses, boolean loopback)
      Construct a new NetworkInfo instance.
      Parameters:
      name - the interface name
      displayName - the human readable display name
      addresses - all addresses bound to the interface
      loopback - whether this interface represents the loopback device
  • Method Details

    • getName

      public String getName()
      Returns:
      the interface name
    • getDisplayName

      public String getDisplayName()
      Returns:
      the user friendly display name
    • getAddresses

      public List<InetAddress> getAddresses()
      Returns:
      all addresses associated with the interface
    • isLoopback

      public boolean isLoopback()
      Returns:
      true if this interface is a loopback interface