org.littleshoot.stun.stack.message
Interface StunMessage

All Superinterfaces:
VisitableStunMessage
All Known Implementing Classes:
AbstractStunDataMessage, AbstractStunMessage, AllocateErrorResponse, AllocateRequest, AllocateSuccessResponse, BindingErrorResponse, BindingRequest, BindingSuccessResponse, CanceledStunMessage, ConnectErrorStunMessage, ConnectionStatusIndication, ConnectRequest, DataIndication, NullStunMessage, SendIndication

public interface StunMessage
extends VisitableStunMessage

Interface for STUN messages.


Method Summary
 Map<StunAttributeType,StunAttribute> getAttributes()
          Accessor for the message attributes.
 int getBodyLength()
          Accessor for the length of the message body.
 int getTotalLength()
          Accessor for the total length of the message, including headers.
 org.apache.commons.id.uuid.UUID getTransactionId()
          Accessor for the ID of the message's transaction.
 StunMessageType getType()
          Accessor for the type of the message.
 
Methods inherited from interface org.littleshoot.stun.stack.message.VisitableStunMessage
accept
 

Method Detail

getTransactionId

org.apache.commons.id.uuid.UUID getTransactionId()
Accessor for the ID of the message's transaction.

Returns:
The transaction ID.

getTotalLength

int getTotalLength()
Accessor for the total length of the message, including headers.

Returns:
The total length of the message.

getAttributes

Map<StunAttributeType,StunAttribute> getAttributes()
Accessor for the message attributes.

Returns:
The message attributes Map.

getBodyLength

int getBodyLength()
Accessor for the length of the message body.

Returns:
The length of the message body.

getType

StunMessageType getType()
Accessor for the type of the message.

Returns:
The type of the message.


Copyright © 2013 LittleShoot. All Rights Reserved.