|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.core.net.NetInterfaceAddressImpl
public class NetInterfaceAddressImpl
Constructor Summary | |
---|---|
NetInterfaceAddressImpl()
|
|
NetInterfaceAddressImpl(NetInterfaceAddress other)
|
Method Summary | |
---|---|
protected boolean |
compare(Object obj1,
Object obj2)
|
boolean |
equals(Object obj)
|
IPAddress |
getAddress()
Returns an InetAddress for this address. |
IPAddress |
getBroadcast()
Returns an InetAddress for the broadcast address for this InterfaceAddress. |
List<? extends IPAddress> |
getDnsServers()
Gets the list of DNS servers associated with this interface |
IPAddress |
getGateway()
Returns the InetAddress for the gateway. |
IPAddress |
getNetmask()
Returns the network mask for this address Typical IPv4 values would be 255.0.0.0, 255.255.0.0 or 255.255.255.0. |
short |
getNetworkPrefixLength()
Returns the network prefix length for this address. |
void |
setAddress(IPAddress address)
|
void |
setBroadcast(IPAddress broadcast)
|
void |
setDnsServers(List<? extends IPAddress> dnsAddresses)
|
void |
setGateway(IPAddress gateway)
|
void |
setNetmask(IPAddress netmask)
|
void |
setNetworkPrefixLength(short networkPrefixLength)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetInterfaceAddressImpl()
public NetInterfaceAddressImpl(NetInterfaceAddress other)
Method Detail |
---|
public IPAddress getAddress()
NetInterfaceAddress
getAddress
in interface NetInterfaceAddress
public void setAddress(IPAddress address)
public short getNetworkPrefixLength()
NetInterfaceAddress
getNetworkPrefixLength
in interface NetInterfaceAddress
public void setNetworkPrefixLength(short networkPrefixLength)
public IPAddress getNetmask()
NetInterfaceAddress
getNetmask
in interface NetInterfaceAddress
public void setNetmask(IPAddress netmask)
public IPAddress getGateway()
NetInterfaceAddress
getGateway
in interface NetInterfaceAddress
public void setGateway(IPAddress gateway)
public IPAddress getBroadcast()
NetInterfaceAddress
getBroadcast
in interface NetInterfaceAddress
public void setBroadcast(IPAddress broadcast)
public List<? extends IPAddress> getDnsServers()
NetInterfaceAddress
getDnsServers
in interface NetInterfaceAddress
public void setDnsServers(List<? extends IPAddress> dnsAddresses)
public boolean equals(Object obj)
equals
in class Object
protected boolean compare(Object obj1, Object obj2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |