|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.stun.stack.message.AbstractStunMessage
public abstract class AbstractStunMessage
Abstracts out common methods and data of STUN messages.
| Constructor Summary | |
|---|---|
AbstractStunMessage(StunMessageType messageType)
Creates a new STUN message. |
|
AbstractStunMessage(StunMessageType messageType,
Map<StunAttributeType,StunAttribute> attributes)
Creates a new STUN message. |
|
AbstractStunMessage(org.apache.commons.id.uuid.UUID transactionId,
StunMessageType messageType)
Creates a new STUN message. |
|
AbstractStunMessage(org.apache.commons.id.uuid.UUID transactionId,
StunMessageType messageType,
Map<StunAttributeType,StunAttribute> attributes)
Creates a new STUN message. |
|
| Method Summary | |
|---|---|
protected static Map<StunAttributeType,StunAttribute> |
createAttributes(StunAttribute... attributes)
|
protected static Map<StunAttributeType,StunAttribute> |
createRemoteAddress(InetSocketAddress remoteAddress)
|
Map<StunAttributeType,StunAttribute> |
getAttributes()
Accessor for the message attributes. |
int |
getBodyLength()
Accessor for the length of the message body. |
int |
getTotalLength()
Accessor for the total length of the message, including headers. |
org.apache.commons.id.uuid.UUID |
getTransactionId()
Accessor for the ID of the message's transaction. |
StunMessageType |
getType()
Accessor for the type of the message. |
String |
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 AbstractStunMessage(StunMessageType messageType)
messageType - The type of message.
public AbstractStunMessage(StunMessageType messageType,
Map<StunAttributeType,StunAttribute> attributes)
attributes - The message attributes.messageType - The type of the message.
public AbstractStunMessage(org.apache.commons.id.uuid.UUID transactionId,
StunMessageType messageType)
transactionId - The transaction ID.messageType - The type of message.
public AbstractStunMessage(org.apache.commons.id.uuid.UUID transactionId,
StunMessageType messageType,
Map<StunAttributeType,StunAttribute> attributes)
transactionId - The transaction ID.attributes - The message attributes.messageType - The type of the message.| Method Detail |
|---|
protected static Map<StunAttributeType,StunAttribute> createAttributes(StunAttribute... attributes)
protected static Map<StunAttributeType,StunAttribute> createRemoteAddress(InetSocketAddress remoteAddress)
public org.apache.commons.id.uuid.UUID getTransactionId()
StunMessage
getTransactionId in interface StunMessagepublic int getTotalLength()
StunMessage
getTotalLength in interface StunMessagepublic Map<StunAttributeType,StunAttribute> getAttributes()
StunMessage
getAttributes in interface StunMessageMap.public int getBodyLength()
StunMessage
getBodyLength in interface StunMessagepublic StunMessageType getType()
StunMessage
getType in interface StunMessagepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||