-
- All Implemented Interfaces:
public class ConnectionIdAttribute extends Attribute
The connection ID attribute defined in RFC 6062: Traversal Using Relays around NAT (TURN) Extensions for TCP Allocations.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNAMEpublic final static charDATA_LENGTHprivate intconnectionIdValue
-
Method Summary
Modifier and Type Method Description intgetConnectionIdValue()Gets the Connection-Id Value voidsetConnectionIdValue(int connectionIdValue)Sets the Connection-Id Value chargetDataLength()Returns the length of this attribute 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
-
getConnectionIdValue
int getConnectionIdValue()
Gets the Connection-Id Value
-
setConnectionIdValue
void setConnectionIdValue(int connectionIdValue)
Sets the Connection-Id Value
- Parameters:
connectionIdValue- the connection Id value.
-
getDataLength
char getDataLength()
Returns the length of this attribute 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.
-
-
-
-