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

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.DataIndication
All Implemented Interfaces:
StunMessage, VisitableStunMessage

public final class DataIndication
extends AbstractStunDataMessage

TURN message that encapsulates data coming from a remote host for sending on to the TURN client.


Constructor Summary
DataIndication(InetSocketAddress remoteAddress, byte[] data)
          Creates a new Data Indication message.
DataIndication(org.apache.commons.id.uuid.UUID transactionId, Map<StunAttributeType,StunAttribute> attributes)
          Creates a new Data Indication message.
 
Method Summary
<T> T
accept(StunMessageVisitor<T> visitor)
          Accepts the specified visitor class.
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataIndication

public DataIndication(org.apache.commons.id.uuid.UUID transactionId,
                      Map<StunAttributeType,StunAttribute> attributes)
Creates a new Data Indication message.

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

DataIndication

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

Parameters:
remoteAddress - The remote address the data arrived from.
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.


Copyright © 2013 LittleShoot. All Rights Reserved.