Class WindowsNetworkParams

java.lang.Object
oshi.software.common.AbstractNetworkParams
oshi.software.os.windows.WindowsNetworkParams
All Implemented Interfaces:
NetworkParams

@ThreadSafe final class WindowsNetworkParams extends AbstractNetworkParams
WindowsNetworkParams class.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • COMPUTER_NAME_DNS_DOMAIN_FULLY_QUALIFIED

      private static final int COMPUTER_NAME_DNS_DOMAIN_FULLY_QUALIFIED
      See Also:
  • Constructor Details

    • WindowsNetworkParams

      WindowsNetworkParams()
  • Method Details

    • getDomainName

      public String getDomainName()
      Description copied from interface: NetworkParams
      Gets the Domain Name of the machine executing OSHI.
      Specified by:
      getDomainName in interface NetworkParams
      Overrides:
      getDomainName in class AbstractNetworkParams
      Returns:
      the domain name
    • getDnsServers

      public String[] getDnsServers()
      Description copied from interface: NetworkParams
      Gets the DNS Servers configured for this machine.
      Specified by:
      getDnsServers in interface NetworkParams
      Overrides:
      getDnsServers in class AbstractNetworkParams
      Returns:
      the DNS servers
    • getHostName

      public String getHostName()
      Description copied from interface: NetworkParams
      Gets the HostName of the machine executing OSHI.
      Specified by:
      getHostName in interface NetworkParams
      Overrides:
      getHostName in class AbstractNetworkParams
      Returns:
      the hostname
    • getIpv4DefaultGateway

      public String getIpv4DefaultGateway()
      Description copied from interface: NetworkParams
      Gets the default gateway(routing destination for 0.0.0.0/0) for IPv4 connections.
      Returns:
      default gateway for IPv4, or empty string if not defined.
    • getIpv6DefaultGateway

      public String getIpv6DefaultGateway()
      Description copied from interface: NetworkParams
      Gets default gateway(routing destination for ::/0) for IPv6 connections.
      Returns:
      default gateway for IPv6, or empty string if not defined.
    • parseIpv4Route

      private static String parseIpv4Route()
    • parseIpv6Route

      private static String parseIpv6Route()