org.littleshoot.stun.stack.message.attributes.ice
Class IceControlledAttribute

java.lang.Object
  extended by org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
      extended by org.littleshoot.stun.stack.message.attributes.ice.IceControlledAttribute
All Implemented Interfaces:
StunAttribute

public final class IceControlledAttribute
extends AbstractStunAttribute

The ICE-CONTROLLED attribute is present in a Binding Request, and indicates that the client believes it is currently in the controlled role. The content of the attribute is a 64 bit unsigned integer in network byte ordering, which contains a random number used for tie- breaking of role conflicts.


Constructor Summary
IceControlledAttribute(byte[] tieBreaker)
          Creates a new ICE-CONTROLLED attribute.
 
Method Summary
 void accept(StunAttributeVisitor visitor)
          Allows attributes to accept visitors.
 byte[] getTieBreaker()
          Accessor for the random 64 bit positive integer that serves as the tie-breaker.
 String toString()
           
 
Methods inherited from class org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
getAttributeType, getBodyLength, getTotalLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IceControlledAttribute

public IceControlledAttribute(byte[] tieBreaker)
Creates a new ICE-CONTROLLED attribute.

Parameters:
tieBreaker - The tie-breaker for control conflicts.
Method Detail

getTieBreaker

public byte[] getTieBreaker()
Accessor for the random 64 bit positive integer that serves as the tie-breaker.

Returns:
The 64 bit positive integer for this attribute.

accept

public void accept(StunAttributeVisitor visitor)
Description copied from interface: StunAttribute
Allows attributes to accept visitors.

Parameters:
visitor - The visitor to accept.

toString

public String toString()
Overrides:
toString in class AbstractStunAttribute


Copyright © 2013 LittleShoot. All Rights Reserved.