Package 

Class RequestedAddressFamilyAttribute

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String NAME
      public final static char DATA_LENGTH
      public final static char IPv4
      public final static char IPv6
      char family
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      char getFamily() Gets the address family value
      boolean setFamily(char family) Sets the address family value
      char getDataLength() Returns the length of this attribute's body.
      String getName() Returns the human readable name of this attribute.
      boolean equals(Object obj) Compares two TURN Attributes.
      Array<byte> encode() Returns a binary representation of this attribute.
      • Methods inherited from class org.ice4j.attribute.Attribute

        getAttributeType, getLocationInMessage, setLocationInMessage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getFamily

         char getFamily()

        Gets the address family value

      • setFamily

         boolean setFamily(char family)

        Sets the address family value

        Parameters:
        family - the address family value to set
      • getDataLength

         char getDataLength()

        Returns the length of this attribute's body.

      • getName

         String getName()

        Returns the human readable name of this attribute. Attribute names do not really matter from the protocol point of view. They are only used for debugging and readability.

      • equals

         boolean equals(Object obj)

        Compares two TURN Attributes. Attributes are considered equal when their type, length, and all data are the same.

        Parameters:
        obj - the object to compare this attribute with.
      • encode

         Array<byte> encode()

        Returns a binary representation of this attribute.