public abstract class AbstractNetwork extends Object implements NetworkParams
| Constructor and Description |
|---|
AbstractNetwork() |
| 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, waitgetIpv4DefaultGateway, getIpv6DefaultGatewayprotected static String searchGateway(List<String> lines)
lines - output of OS-specific route commandpublic String getDomainName()
NetworkParamsgetDomainName.
getDomainName in interface NetworkParamspublic String getHostName()
NetworkParamsgetHostName.
getHostName in interface NetworkParamspublic String[] getDnsServers()
NetworkParamsgetDnsServers.
getDnsServers in interface NetworkParamsCopyright © 2020. All rights reserved.