public class NetworkAddresses.NetworkAddress
extends java.lang.Object
Constructor and Description |
---|
NetworkAddress(java.net.NetworkInterface nInterface,
java.net.InetAddress inetAddress)
Instantiates a new network address.
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
getInetAddress()
Gets the
InetAddress . |
NetworkAddresses.InetAddressType |
getInetAddressType()
Gets the
NetworkAddresses.InetAddressType . |
java.net.NetworkInterface |
getNetworkInterface()
Gets the NetworkInterface.
|
java.lang.Integer |
getSelectionPriority()
Gets the selection priority.
|
void |
setInetAddress(java.net.InetAddress inetAddress)
Sets the
InetAddress . |
void |
setInetAddressType(NetworkAddresses.InetAddressType inetAddressType)
Sets the
NetworkAddresses.InetAddressType . |
void |
setNetworkInterface(java.net.NetworkInterface networkInterface)
Sets the NetworkInterface.
|
void |
setSelectionPriority()
Sets the selection priority according to the local
NetworkInterface (name and display name). |
void |
setSelectionPriority(java.lang.Integer selectionPriority)
Sets the selection priority.
|
java.lang.String |
toString() |
public NetworkAddress(java.net.NetworkInterface nInterface, java.net.InetAddress inetAddress)
nInterface
- the n interfaceinetAddress
- the inet addresspublic java.net.NetworkInterface getNetworkInterface()
public void setNetworkInterface(java.net.NetworkInterface networkInterface)
networkInterface
- the new network interfacepublic java.net.InetAddress getInetAddress()
InetAddress
.public void setInetAddress(java.net.InetAddress inetAddress)
InetAddress
.inetAddress
- the new inet addresspublic NetworkAddresses.InetAddressType getInetAddressType()
NetworkAddresses.InetAddressType
.NetworkAddresses.InetAddressType
public void setInetAddressType(NetworkAddresses.InetAddressType inetAddressType)
NetworkAddresses.InetAddressType
.inetAddressType
- the new NetworkAddresses.InetAddressType
public void setSelectionPriority()
NetworkInterface
(name and display name).public void setSelectionPriority(java.lang.Integer selectionPriority)
selectionPriority
- the new selection prioritypublic java.lang.Integer getSelectionPriority()
public java.lang.String toString()
toString
in class java.lang.Object