|
||||||||||
| 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.BindingSuccessResponse
public class BindingSuccessResponse
Binding response message.
| Constructor Summary | |
|---|---|
BindingSuccessResponse(byte[] transactionId,
InetSocketAddress address)
Creates a new binding response message. |
|
BindingSuccessResponse(org.apache.commons.id.uuid.UUID transactionId,
Map<StunAttributeType,StunAttribute> attributes)
Creates a new binding response message. |
|
| Method Summary | ||
|---|---|---|
|
accept(StunMessageVisitor<T> visitor)
Accepts the specified visitor class. |
|
InetSocketAddress |
getMappedAddress()
Accessor for the mapped address received in the binding response. |
|
String |
toString()
|
|
| Methods inherited from class org.littleshoot.stun.stack.message.AbstractStunMessage |
|---|
createAttributes, createRemoteAddress, getAttributes, getBodyLength, getTotalLength, getTransactionId, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BindingSuccessResponse(byte[] transactionId,
InetSocketAddress address)
transactionId - The ID of the transaction.address - The mapped address.
public BindingSuccessResponse(org.apache.commons.id.uuid.UUID transactionId,
Map<StunAttributeType,StunAttribute> attributes)
transactionId - The transaction ID of the response.attributes - The response attributes.| Method Detail |
|---|
public InetSocketAddress getMappedAddress()
public <T> T accept(StunMessageVisitor<T> visitor)
VisitableStunMessage
T - The type the visitor will return.visitor - The visitor to accept.
public String toString()
toString in class AbstractStunMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||