|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
public abstract class AbstractStunAttribute
Abstracts out common STUN attribute functionality.
| Constructor Summary | |
|---|---|
AbstractStunAttribute(StunAttributeType attributeType,
int bodyLength)
Creates a new attribute. |
|
| Method Summary | |
|---|---|
StunAttributeType |
getAttributeType()
Accessor for the type of the attribute. |
int |
getBodyLength()
Returns the length of the attribute in bytes. |
int |
getTotalLength()
Gets the total length of the attribute including the header and the body in bytes. |
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.attributes.StunAttribute |
|---|
accept |
| Constructor Detail |
|---|
public AbstractStunAttribute(StunAttributeType attributeType,
int bodyLength)
attributeType - The type of the attribute.bodyLength - The length of the attribute body in bytes.| Method Detail |
|---|
public int getBodyLength()
StunAttribute
getBodyLength in interface StunAttributepublic int getTotalLength()
StunAttribute
getTotalLength in interface StunAttributepublic StunAttributeType getAttributeType()
StunAttribute
getAttributeType in interface StunAttributepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||