public static class NetworkManagerLite.NetworkDevice
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NetworkManagerLite.NetworkDevice.Configuration |
static class |
NetworkManagerLite.NetworkDevice.Type |
Constructor and Description |
---|
NetworkDevice(java.lang.String label)
Constructor for a dummy network device in support of the video alias list
|
NetworkDevice(java.lang.String label,
NetworkManagerLite.NetworkDevice.Type[] types,
NetworkManagerLite.NetworkDevice.Configuration c,
java.lang.String interfaceName,
java.lang.String prefAddress,
java.lang.String prefNetmask,
java.lang.String prefGateway,
boolean prefCreateDefaultRoute)
Construct a network device which contains the current mapping information for the
best identifying the device.
|
Modifier and Type | Method and Description |
---|---|
java.net.NetworkInterface |
getInterface()
Based on the interface name, get the interface otherwise if no interface name
is provided, return null.
|
java.lang.String |
getInterfaceName()
Return the interface name for the Network Device based on information
provided from Network Monitor
|
java.lang.String |
getLabel()
Gets the preferred label for the device
|
java.lang.String |
getPreferredAddress()
Gets the preferred address for the device for static configuration.
|
boolean |
isSupported(NetworkManagerLite.NetworkDevice.Type t)
Test to see if the type is supported.
|
public NetworkDevice(java.lang.String label)
label
- the label to use for the dummy network device which is also used
as the interface name.public NetworkDevice(java.lang.String label, NetworkManagerLite.NetworkDevice.Type[] types, NetworkManagerLite.NetworkDevice.Configuration c, java.lang.String interfaceName, java.lang.String prefAddress, java.lang.String prefNetmask, java.lang.String prefGateway, boolean prefCreateDefaultRoute)
label
- the label for the devicetypes
- the types of traffic supportedc
- the configuration typeinterfaceName
- the name of the interfaceprefAddress
- the preferred address when used in static configurationprefNetmask
- the preferred netmask when used in static configurationprefGateway
- the preferred gateway when used in static configurationprefCreateDefaultRoute
- if a default route should be created.public boolean isSupported(NetworkManagerLite.NetworkDevice.Type t)
t
- the typepublic java.lang.String getInterfaceName()
public java.net.NetworkInterface getInterface()
public java.lang.String getPreferredAddress()
public java.lang.String getLabel()