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

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

public final class IcePriorityAttribute
extends AbstractStunAttribute

The PRIORITY attribute indicates the priority that is to be associated with a peer reflexive candidate, should one be discovered by this check. It is a 32 bit unsigned integer.


Constructor Summary
IcePriorityAttribute(long priority)
          Creates a new priority attribute.
 
Method Summary
 void accept(StunAttributeVisitor visitor)
          Allows attributes to accept visitors.
 long getPriority()
          Accessor for the priority as an unsigned int.
 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

IcePriorityAttribute

public IcePriorityAttribute(long priority)
Creates a new priority attribute.

Parameters:
priority - The priority as an unsigned int.
Method Detail

getPriority

public long getPriority()
Accessor for the priority as an unsigned int.

Returns:
The priority as an unsigned int.

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.