Package 

Class StunDiscoveryReport

  • All Implemented Interfaces:

    
    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)

    • Constructor Detail

    • Method Detail

      • getNatType

         String getNatType()

        Returns the type of the NAT described in the report.

      • setNatType

         void setNatType(String natType)

        Sets the type of the NAT indicated by the report.

        Parameters:
        natType - the type of the NAT.
      • setPublicAddress

         void setPublicAddress(TransportAddress stunAddress)

        Sets a public address.

        Parameters:
        stunAddress - An address that's accesible from everywhere.
      • equals

         boolean equals(Object obj)

        Compares this object with obj. Two reports are considered equal if and only if both have the same nat type and their public addresses are equal or are both null.

        Parameters:
        obj - the object to compare against.
      • toString

         String toString()

        Returns a readable representation of the report.