public abstract class AbstractNetworkParams extends Object implements NetworkParams
Constructor and Description |
---|
AbstractNetworkParams() |
Modifier and Type | Method and Description |
---|---|
String[] |
getDnsServers()
getDnsServers.
|
String |
getDomainName()
getDomainName.
|
String |
getHostName()
getHostName.
|
protected static String |
searchGateway(List<String> lines)
Convenience method to parse the output of the `route` command.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIpv4DefaultGateway, getIpv6DefaultGateway
public String getDomainName()
getDomainName.
getDomainName
in interface NetworkParams
public String getHostName()
getHostName.
getHostName
in interface NetworkParams
public String[] getDnsServers()
getDnsServers.
getDnsServers
in interface NetworkParams
protected static String searchGateway(List<String> lines)
lines
- output of OS-specific route commandCopyright © 2010–2020 oshi. All rights reserved.