public class NetConfigIP4 extends NetConfigIP<IP4Address> implements NetConfig4
Constructor and Description |
---|
NetConfigIP4(NetInterfaceStatus status,
boolean autoConnect)
Constructor for a Configuration for a
network interface based on IPv4 addresses.
|
NetConfigIP4(NetInterfaceStatus status,
boolean autoConnect,
boolean dhcp)
Constructor for a DHCP Configration for a
network interface nased on IPv4 addresses.
|
NetConfigIP4(NetInterfaceStatus status,
boolean autoConnect,
IP4Address address,
IP4Address subnetMask,
IP4Address gateway) |
NetConfigIP4(NetInterfaceStatus status,
boolean autoConnect,
IP4Address address,
short networkPrefixLength,
IP4Address gateway) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<IP4Address> |
getWinsServers()
Returns the list of Windows Servers to be associated with the interface
|
int |
hashCode() |
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setWinsServers(List<IP4Address> winsServers)
Sets the list of Windows Servers to be associated with the interface
|
String |
toString() |
getAddress, getDnsServers, getDomains, getGateway, getNetworkPrefixLength, getProperties, getStatus, getSubnetMask, isAutoConnect, isDhcp, setAddress, setAutoConnect, setDhcp, setDnsServers, setDomains, setGateway, setNetworkPrefixLength, setProperties, setStatus, setSubnetMask
public NetConfigIP4(NetInterfaceStatus status, boolean autoConnect)
address
- - address to be assigned to the interfacenetworkPrefixLength
- - prefix to be used for the interfacegateway
- - gateway to be associated with the interfacepublic NetConfigIP4(NetInterfaceStatus status, boolean autoConnect, boolean dhcp)
dhcp
- whether or not DHCP client mode should be usedpublic NetConfigIP4(NetInterfaceStatus status, boolean autoConnect, IP4Address address, short networkPrefixLength, IP4Address gateway) throws EsfException
EsfException
public NetConfigIP4(NetInterfaceStatus status, boolean autoConnect, IP4Address address, IP4Address subnetMask, IP4Address gateway) throws EsfException
EsfException
public List<IP4Address> getWinsServers()
public void setWinsServers(List<IP4Address> winsServers)
winsServers
- public boolean isValid()
NetConfig
isValid
in interface NetConfig
isValid
in class NetConfigIP<IP4Address>
public String toString()
toString
in class NetConfigIP<IP4Address>
public int hashCode()
hashCode
in class NetConfigIP<IP4Address>
public boolean equals(Object obj)
equals
in class NetConfigIP<IP4Address>
Copyright © 2013. All Rights Reserved.