|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.netaddr.AddressPoolEntry
public class AddressPoolEntry
An entry in the Address Pool. An addresspool entry contains an address belonging to any of the local network interfaces together with properties that characterize them, such as - whether or not the address is publicly routable or not, It's corresponding NAT entry obtained by stun. The type of NAT that the address is located behind (if any). The lifetime of the bindings behind this NAT. Any TURN bindings. Whether or not TCP connections seem to be supported. Whether or not UDP connections seem to be supported, and etc. etc. Concerning the address, this is an immutable object, in other words, the address of a single entry is not supposed to change once it has been created. In case this address is modified while the application is running we'll rather have a new address entry instead of modifying this one. The only thing that can change about an address pool entry is its properties.
| Constructor Summary | |
|---|---|
AddressPoolEntry(InetAddress address,
NetworkInterface ownerIface)
|
|
| Method Summary | |
|---|---|
AddressPreference |
getAddressPreference()
Returns the AddressPreference assigned to this AddressEntry. |
InetAddress |
getInetAddress()
Returns the ip address that this address pool entry represents. |
NetworkInterface |
getOwnerInterface()
Returns the interface that this address belongs to. |
boolean |
is6to4()
Determines whether the adderss encapsulated by this address entry is a 6to4 translation address (2002::/16) |
boolean |
isGloballyRoutable()
Determines whether the adderss encapsulated by this address entry is a globally routable inet address, or in other words is it possible (at least in theory) to directly send packets to it from any point of the internet. |
boolean |
isIPv4LinkLocalAutoconf()
Determines whether the address encapsulated by this entry is the result of windows auto configuration (i.e. |
static boolean |
isIPv4LinkLocalAutoconf(InetAddress add)
Determines whether the address is the result of windows auto configuration. |
boolean |
isIPv6()
Determines whether or not the address pool entry represents an IPv6 address. |
boolean |
isLinkLocal()
Determines whether this is a link local or publicly routable address. |
boolean |
isLinkLocalIPv4Address()
Determines whether the address encapsulated by this entry is an IPv4 link local address. |
static boolean |
isLinkLocalIPv4Address(InetAddress add)
Determines whether the address is an IPv4 link local address. |
boolean |
isLinkLocalIPv6Address()
Determines whether the address encapsulated by this entry is an IPv6 link local address. |
boolean |
isLoopback()
Determines whether this is the localhost address (127.0.0.1 or ::1). |
(package private) void |
setAddressPreference(AddressPreference preference)
Sets the AddressPreference that address diagnostics have calculated for the address corresponding to this entry. |
(package private) void |
setLinkLocal(boolean linkLocal)
Specifies whether or not the address is an IPv4 link local address. |
String |
toString()
Returns a string representation of this address entry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddressPoolEntry(InetAddress address,
NetworkInterface ownerIface)
| Method Detail |
|---|
public InetAddress getInetAddress()
public boolean isIPv6()
public boolean isLinkLocal()
void setLinkLocal(boolean linkLocal)
linkLocal - true if tpublic static boolean isIPv4LinkLocalAutoconf(InetAddress add)
add - the address to inspect
public boolean isIPv4LinkLocalAutoconf()
public static boolean isLinkLocalIPv4Address(InetAddress add)
add - the address to inspect
public boolean isLinkLocalIPv4Address()
public boolean isLinkLocalIPv6Address()
public boolean isLoopback()
public boolean isGloballyRoutable()
public boolean is6to4()
public NetworkInterface getOwnerInterface()
public String toString()
toString in class Objectvoid setAddressPreference(AddressPreference preference)
preference - the preference to assign to this entrypublic AddressPreference getAddressPreference()
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||