Interface NetworkParams

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String[] getDnsServers()
      Gets the DNS Servers configured for this machine.
      java.lang.String getDomainName()
      Gets the Domain Name of the machine executing OSHI.
      java.lang.String getHostName()
      Gets the HostName of the machine executing OSHI.
      java.lang.String getIpv4DefaultGateway()
      Gets the default gateway(routing destination for 0.0.0.0/0) for IPv4 connections.
      java.lang.String getIpv6DefaultGateway()
      Gets default gateway(routing destination for ::/0) for IPv6 connections.
    • Method Detail

      • getHostName

        java.lang.String getHostName()
        Gets the HostName of the machine executing OSHI.
        Returns:
        the hostname
      • getDomainName

        java.lang.String getDomainName()
        Gets the Domain Name of the machine executing OSHI.
        Returns:
        the domain name
      • getDnsServers

        java.lang.String[] getDnsServers()
        Gets the DNS Servers configured for this machine.
        Returns:
        the DNS servers
      • getIpv4DefaultGateway

        java.lang.String getIpv4DefaultGateway()
        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

        java.lang.String getIpv6DefaultGateway()
        Gets default gateway(routing destination for ::/0) for IPv6 connections.
        Returns:
        default gateway for IPv6, or empty string if not defined.