public class NetworkParamsImpl extends AbstractOshiJsonObject implements NetworkParams
| Constructor and Description |
|---|
NetworkParamsImpl(NetworkParams networkParams)
Creates a new platform-specific NetworkParams object wrapping the
provided argument
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getDnsServers() |
String |
getDomainName() |
String |
getHostName() |
String |
getIpv4DefaultGateway() |
String |
getIpv6DefaultGateway() |
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSON, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONpublic NetworkParamsImpl(NetworkParams networkParams)
networkParams - a platform-specific NetworkParams objectpublic String getHostName()
getHostName in interface NetworkParamspublic String getDomainName()
getDomainName in interface NetworkParamspublic String[] getDnsServers()
getDnsServers in interface NetworkParamspublic String getIpv4DefaultGateway()
getIpv4DefaultGateway in interface NetworkParamspublic String getIpv6DefaultGateway()
getIpv6DefaultGateway in interface NetworkParamspublic javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.Copyright © 2010–2017 oshi. All rights reserved.