org.littleshoot.stun.stack.message.turn
Class AllocateRequest

java.lang.Object
  extended by org.littleshoot.stun.stack.message.AbstractStunMessage
      extended by org.littleshoot.stun.stack.message.turn.AllocateRequest
All Implemented Interfaces:
StunMessage, VisitableStunMessage

public final class AllocateRequest
extends AbstractStunMessage

Allocate request message. This can create an allocate request from scratch or from network data.


Constructor Summary
AllocateRequest()
          Creates a new request to allocate a TURN client mapping.
AllocateRequest(org.apache.commons.id.uuid.UUID id)
          Creates a new request from the network with the given transaction ID and factory for creating attributes.
 
Method Summary
<T> T
accept(StunMessageVisitor<T> visitor)
          Accepts the specified visitor class.
 
Methods inherited from class org.littleshoot.stun.stack.message.AbstractStunMessage
createAttributes, createRemoteAddress, getAttributes, getBodyLength, getTotalLength, getTransactionId, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllocateRequest

public AllocateRequest()
Creates a new request to allocate a TURN client mapping. It uses the given attribute factory for creating message attributes.


AllocateRequest

public AllocateRequest(org.apache.commons.id.uuid.UUID id)
Creates a new request from the network with the given transaction ID and factory for creating attributes.

Parameters:
id - The ID of the request.
Method Detail

accept

public <T> T accept(StunMessageVisitor<T> visitor)
Description copied from interface: VisitableStunMessage
Accepts the specified visitor class.

Type Parameters:
T - The type the visitor will return.
Parameters:
visitor - The visitor to accept.
Returns:
The return value of the visitor.


Copyright © 2013 LittleShoot. All Rights Reserved.