|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetInterfaceAddress
This class represents a Network Interface address as currently running on the system In short it's an IP address, a subnet mask and a broadcast address when the address is an IPv4 one. An IP address and a network prefix length in the case of IPv6 address. Both IPv4 and IPv6 addresses will have a gateway and one or more DNS addresses.
Method Summary | |
---|---|
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. |
Method Detail |
---|
IPAddress getAddress()
short getNetworkPrefixLength()
IPAddress getNetmask()
IPAddress getGateway()
IPAddress getBroadcast()
List<? extends IPAddress> getDnsServers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |