
org.littleshoot.stun.stack.message.turn.AllocateRequest Maven / Gradle / Ivy
The newest version!
package org.littleshoot.stun.stack.message.turn;
import org.apache.commons.id.uuid.UUID;
import org.littleshoot.stun.stack.message.AbstractStunMessage;
import org.littleshoot.stun.stack.message.StunMessageType;
import org.littleshoot.stun.stack.message.StunMessageVisitor;
/**
* Allocate request message. This can create an allocate request from scratch
* or from network data.
*/
public final class AllocateRequest extends AbstractStunMessage
{
/**
* Creates a new request to allocate a TURN client mapping. It uses the
* given attribute factory for creating message attributes.
*/
public AllocateRequest()
{
super(StunMessageType.ALLOCATE_REQUEST);
}
/**
* Creates a new request from the network with the given transaction ID
* and factory for creating attributes.
*
* @param id The ID of the request.
*/
public AllocateRequest(final UUID id)
{
super(id, StunMessageType.ALLOCATE_REQUEST);
}
public T accept(final StunMessageVisitor visitor)
{
return visitor.visitAllocateRequest(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy