-
- All Implemented Interfaces:
public class RequestedAddressFamilyAttribute extends Attribute
The requested address family attribute defined in RFC 6156.
-
-
Method Summary
Modifier and Type Method Description chargetFamily()Gets the address family value booleansetFamily(char family)Sets the address family value chargetDataLength()Returns the length of this attribute's body. StringgetName()Returns the human readable name of this attribute. booleanequals(Object obj)Compares two TURN Attributes. Array<byte>encode()Returns a binary representation of this attribute. -
-
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.
-
-
-
-