com.eurotech.framework.net
Class NetConfigIP4

java.lang.Object
  extended by com.eurotech.framework.net.NetConfigIP<IP4Address>
      extended by com.eurotech.framework.net.NetConfigIP4
All Implemented Interfaces:
NetConfig, NetConfig4

public class NetConfigIP4
extends NetConfigIP<IP4Address>
implements NetConfig4

Configuration for a network interface based on IPv4 addresses.


Constructor Summary
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)
           
 
Method Summary
 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()
           
 
Methods inherited from class com.eurotech.framework.net.NetConfigIP
getAddress, getDnsServers, getDomains, getGateway, getNetworkPrefixLength, getProperties, getStatus, getSubnetMask, isAutoConnect, isDhcp, setAddress, setAutoConnect, setDhcp, setDnsServers, setDomains, setGateway, setNetworkPrefixLength, setProperties, setStatus, setSubnetMask
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetConfigIP4

public NetConfigIP4(NetInterfaceStatus status,
                    boolean autoConnect)
Constructor for a Configuration for a network interface based on IPv4 addresses.

Parameters:
address - - address to be assigned to the interface
networkPrefixLength - - prefix to be used for the interface
gateway - - gateway to be associated with the interface

NetConfigIP4

public NetConfigIP4(NetInterfaceStatus status,
                    boolean autoConnect,
                    boolean dhcp)
Constructor for a DHCP Configration for a network interface nased on IPv4 addresses.

Parameters:
dhcp - whether or not DHCP client mode should be used

NetConfigIP4

public NetConfigIP4(NetInterfaceStatus status,
                    boolean autoConnect,
                    IP4Address address,
                    short networkPrefixLength,
                    IP4Address gateway)
             throws EsfException
Throws:
EsfException

NetConfigIP4

public NetConfigIP4(NetInterfaceStatus status,
                    boolean autoConnect,
                    IP4Address address,
                    IP4Address subnetMask,
                    IP4Address gateway)
             throws EsfException
Throws:
EsfException
Method Detail

getWinsServers

public List<IP4Address> getWinsServers()
Returns the list of Windows Servers to be associated with the interface

Returns:

setWinsServers

public void setWinsServers(List<IP4Address> winsServers)
Sets the list of Windows Servers to be associated with the interface

Parameters:
winsServers -

isValid

public boolean isValid()
Description copied from interface: NetConfig
Checks whether or not this configuration is valid.

Specified by:
isValid in interface NetConfig
Overrides:
isValid in class NetConfigIP<IP4Address>
Returns:
true if the configuration is valid, otherwise false

toString

public String toString()
Overrides:
toString in class NetConfigIP<IP4Address>

hashCode

public int hashCode()
Overrides:
hashCode in class NetConfigIP<IP4Address>

equals

public boolean equals(Object obj)
Overrides:
equals in class NetConfigIP<IP4Address>


Copyright © 2013. All Rights Reserved.