org.littleshoot.stun.stack.message.turn
Class AllocateRequest
java.lang.Object
org.littleshoot.stun.stack.message.AbstractStunMessage
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. |
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.
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.