|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.stun.stack.message.AbstractStunMessage
org.littleshoot.stun.stack.message.turn.AllocateSuccessResponse
public final class AllocateSuccessResponse
Creates a new response to an allocate request. This includes the mapped address the server has allocated to proxy data to the TURN client.
| Constructor Summary | |
|---|---|
AllocateSuccessResponse(org.apache.commons.id.uuid.UUID transactionId,
InetSocketAddress relayAddress,
InetSocketAddress mappedAddress)
Creates a new successful response to an allocate request. |
|
AllocateSuccessResponse(org.apache.commons.id.uuid.UUID transactionId,
Map<StunAttributeType,StunAttribute> attributes)
Creates a new successful response to an allocate request. |
|
| Method Summary | ||
|---|---|---|
|
accept(StunMessageVisitor<T> visitor)
Accepts the specified visitor class. |
|
InetSocketAddress |
getMappedAddress()
Accessor for the mapped address in the response. |
|
InetSocketAddress |
getRelayAddress()
Accessor for the RELAY ADDRESS in the response. |
|
| 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 |
|---|
public AllocateSuccessResponse(org.apache.commons.id.uuid.UUID transactionId,
Map<StunAttributeType,StunAttribute> attributes)
transactionId - The ID of the transaction, matching the ID of the
request.attributes - The message attributes.
public AllocateSuccessResponse(org.apache.commons.id.uuid.UUID transactionId,
InetSocketAddress relayAddress,
InetSocketAddress mappedAddress)
transactionId - The ID of the transaction, matching the ID of the
request.relayAddress - The allocated RELAY ADDRESS on the server.mappedAddress - The MAPPED ADDRESS, or the "server reflexive"
address.| Method Detail |
|---|
public InetSocketAddress getMappedAddress()
public InetSocketAddress getRelayAddress()
public <T> T accept(StunMessageVisitor<T> visitor)
VisitableStunMessage
T - The type the visitor will return.visitor - The visitor to accept.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||