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

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

public final class SendIndication
extends AbstractStunDataMessage

TURN send message for encapsulating data to be sent to remote hosts.


Constructor Summary
SendIndication(InetSocketAddress remoteAddress, byte[] data)
          Creates a new Send Indication message.
SendIndication(org.apache.commons.id.uuid.UUID transactionId, Map<StunAttributeType,StunAttribute> attributes)
          Creates a new Send Indication message with data from the network.
 
Method Summary
<T> T
accept(StunMessageVisitor<T> visitor)
          Accepts the specified visitor class.
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class org.littleshoot.stun.stack.message.turn.AbstractStunDataMessage
getData, getRemoteAddress
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendIndication

public SendIndication(org.apache.commons.id.uuid.UUID transactionId,
                      Map<StunAttributeType,StunAttribute> attributes)
Creates a new Send Indication message with data from the network.

Parameters:
transactionId - The ID of the transaction.
attributes - The message attributes.

SendIndication

public SendIndication(InetSocketAddress remoteAddress,
                      byte[] data)
Creates a new Send Indication message.

Parameters:
remoteAddress - The address to send the data to.
data - The data.
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.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.