public class EthernetConfiguration
extends java.lang.Object
EthernetManager
Constructor | Description |
---|---|
EthernetConfiguration() |
Class constructor.
|
Modifier and Type | Method | Description |
---|---|---|
EthernetConnectionMode |
getConnectionMode() |
Returns the connection mode.
|
java.net.InetAddress |
getDns1Addr() |
Returns the DNS 1 address.
|
java.net.InetAddress |
getDns2Addr() |
Returns the DNS 2 address.
|
java.net.InetAddress |
getGateway() |
Returns the gateway address.
|
java.lang.String |
getInterfaceName() |
Returns the interface name.
|
java.net.InetAddress |
getIpAddress() |
Returns the IP address.
|
java.net.InetAddress |
getNetMask() |
Returns the net mask address.
|
void |
setConnectionMode(EthernetConnectionMode mode) |
Sets the Ethernet connection mode.
|
void |
setDns1Addr(java.net.InetAddress dns1) |
Sets the DNS 1 address.
|
void |
setDns2Addr(java.net.InetAddress dns2) |
Sets the DNS 2 address.
|
void |
setGateway(java.net.InetAddress gw) |
Sets the gateway address.
|
void |
setInterfaceName(java.lang.String ifname) |
Sets the interface name.
|
void |
setIpAddress(java.net.InetAddress ip) |
Sets the IP address.
|
void |
setNetMask(java.net.InetAddress ip) |
Sets the net mask address.
|
public EthernetConfiguration()
EthernetConfiguration
object with
default values.public void setInterfaceName(java.lang.String ifname)
ifname
- The interface name.public java.lang.String getInterfaceName()
null
if is not set.public void setIpAddress(java.net.InetAddress ip)
ip
- The IP address.java.lang.NullPointerException
- If ip == null
.public java.net.InetAddress getIpAddress()
null
if is not set.public void setGateway(java.net.InetAddress gw)
gw
- The gateway address.java.lang.NullPointerException
- If gw == null
.public java.net.InetAddress getGateway()
null
if is not set.public void setNetMask(java.net.InetAddress ip)
ip
- The net mask address.java.lang.NullPointerException
- If ip == null
.public java.net.InetAddress getNetMask()
null
if is not set.public void setDns1Addr(java.net.InetAddress dns1)
dns1
- The DNS 1 address.java.lang.NullPointerException
- If dns1 == null
.public java.net.InetAddress getDns1Addr()
null
if is not set.public void setDns2Addr(java.net.InetAddress dns2)
dns2
- The DNS 2 address.java.lang.NullPointerException
- If dns2 == null
.public java.net.InetAddress getDns2Addr()
null
if is not set.public void setConnectionMode(EthernetConnectionMode mode)
mode
- The Ethernet connection mode.java.lang.NullPointerException
- If mode == null
.EthernetConnectionMode.DHCP
,
EthernetConnectionMode.STATIC
public EthernetConnectionMode getConnectionMode()
EthernetConnectionMode.DHCP
,
EthernetConnectionMode.STATIC