|
||||||||||
| 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.AbstractStunDataMessage
public abstract class AbstractStunDataMessage
Abstract class for TURN messages containing data, particularly the Send Indication and the Data Indication messages. These are essentially the same message, just passed in different directions.
| Constructor Summary | |
|---|---|
AbstractStunDataMessage(StunMessageType messageType,
byte[] data,
InetSocketAddress remoteAddress)
Creates a new abstract STUN data message. |
|
AbstractStunDataMessage(org.apache.commons.id.uuid.UUID transactionId,
StunMessageType messageType,
Map<StunAttributeType,StunAttribute> attributes)
Creates a new STUN data message. |
|
| Method Summary | |
|---|---|
byte[] |
getData()
Accessor for the data. |
InetSocketAddress |
getRemoteAddress()
Accessor for the remote address. |
| 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 |
| Methods inherited from interface org.littleshoot.stun.stack.message.VisitableStunMessage |
|---|
accept |
| Constructor Detail |
|---|
public AbstractStunDataMessage(org.apache.commons.id.uuid.UUID transactionId,
StunMessageType messageType,
Map<StunAttributeType,StunAttribute> attributes)
transactionId - The transaction ID.messageType - The message type;attributes - The message attributes.
public AbstractStunDataMessage(StunMessageType messageType,
byte[] data,
InetSocketAddress remoteAddress)
messageType - The type of message.data - The data.remoteAddress - The address the data came from or should be sent to.| Method Detail |
|---|
public final byte[] getData()
public final InetSocketAddress getRemoteAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||