org.littleshoot.stun.stack.message.attributes
Interface StunAttribute

All Known Subinterfaces:
StunAddressAttribute
All Known Implementing Classes:
AbstractStunAddressAttribute, AbstractStunAttribute, ConnectionStatusAttribute, DataAttribute, ErrorCodeAttribute, IceControlledAttribute, IceControllingAttribute, IcePriorityAttribute, IceUseCandidateAttribute, MappedAddressAttribute, RelayAddressAttribute, RemoteAddressAttribute, StunServerAttribute

public interface StunAttribute

Interface for the various STUN attributes.


Method Summary
 void accept(StunAttributeVisitor visitor)
          Allows attributes to accept visitors.
 StunAttributeType getAttributeType()
          Accessor for the type of the attribute.
 int getBodyLength()
          Returns the length of the attribute in bytes.
 int getTotalLength()
          Gets the total length of the attribute including the header and the body in bytes.
 

Method Detail

getBodyLength

int getBodyLength()
Returns the length of the attribute in bytes.

Returns:
The length of the attribute in bytes;

accept

void accept(StunAttributeVisitor visitor)
Allows attributes to accept visitors.

Parameters:
visitor - The visitor to accept.

getTotalLength

int getTotalLength()
Gets the total length of the attribute including the header and the body in bytes.

Returns:
The total length of the attribute including the header and the body.

getAttributeType

StunAttributeType getAttributeType()
Accessor for the type of the attribute.

Returns:
The type of the attribute.


Copyright © 2013 LittleShoot. All Rights Reserved.