|
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.StunDiscoveryReport
public class StunDiscoveryReport
The class is used to deliver results from a STUN Discovery Process. It contains information about the NAT Server (or firewall )this client is behind, and a mapped address value (if discovered)
Organisation:
Louis Pasteur University, Strasbourg, France
Network Research Team (http://www-r2.u-strasbg.fr)
| Field Summary | |
|---|---|
static String |
FULL_CONE_NAT
NAT type is full cone. |
static String |
OPEN_INTERNET
Means, there's no NAT or firewall. |
static String |
PORT_RESTRICTED_CONE_NAT
NAT type is port restricted cone. |
static String |
RESTRICTED_CONE_NAT
NAT type is Restricted Cone. |
static String |
SYMMETRIC_NAT
We are behind a symmetric nat. |
static String |
SYMMETRIC_UDP_FIREWALL
Means we are behind a symmetric udp firewall. |
static String |
UDP_BLOCKING_FIREWALL
Indicates that UDP communication is not possible. |
static String |
UNKNOWN
Indicates that NAT detection has failed or not yet initiated. |
| Constructor Summary | |
|---|---|
StunDiscoveryReport()
Creates a discovery report with natType = UNKNOWN and a null public address. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this object with obj. |
String |
getNatType()
Returns the type of the NAT described in the report. |
net.java.stun4j.StunAddress |
getPublicAddress()
Returns the public addressed discovered by a discovery process. |
(package private) void |
setNatType(String natType)
Sets the type of the NAT indicated by the report. |
(package private) void |
setPublicAddress(net.java.stun4j.StunAddress stunAddress)
Sets a public address. |
String |
toString()
Returns a readable representation of the report. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String UNKNOWN
public static final String OPEN_INTERNET
public static final String UDP_BLOCKING_FIREWALL
public static final String SYMMETRIC_UDP_FIREWALL
public static final String FULL_CONE_NAT
public static final String SYMMETRIC_NAT
public static final String RESTRICTED_CONE_NAT
public static final String PORT_RESTRICTED_CONE_NAT
| Constructor Detail |
|---|
StunDiscoveryReport()
| Method Detail |
|---|
public String getNatType()
void setNatType(String natType)
natType - the type of the NAT.public net.java.stun4j.StunAddress getPublicAddress()
void setPublicAddress(net.java.stun4j.StunAddress stunAddress)
stunAddress - An address that's accesible from everywhere.public boolean equals(Object obj)
equals in class Objectobj - the object to compare against.
public String toString()
toString in class Object
|
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 | |||||||||