Class MessageAttribute
java.lang.Object
de.javawi.jstun.attribute.MessageAttribute
- All Implemented Interfaces:
MessageAttributeInterface
- Direct Known Subclasses:
ChangeRequest, Dummy, ErrorCode, MappedResponseChangedSourceAddressReflectedFrom, MessageIntegrity, Password, UnknownAttribute, Username
-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageAttributeInterface
MessageAttributeInterface.MessageAttributeType -
Field Summary
Fields inherited from interface MessageAttributeInterface
CHANGEDADDRESS, CHANGEREQUEST, DUMMY, ERRORCODE, MAPPEDADDRESS, MESSAGEINTEGRITY, PASSWORD, REFLECTEDFROM, RESPONSEADDRESS, SOURCEADDRESS, UNKNOWNATTRIBUTE, USERNAME -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]getBytes()intgetType()intToType(long type) static MessageAttributeparseCommonHeader(byte[] data) voidstatic int
-
Constructor Details
-
MessageAttribute
public MessageAttribute() -
MessageAttribute
-
-
Method Details
-
setType
-
getType
-
typeToInteger
-
intToType
-
getBytes
- Throws:
UtilityException
-
getLength
- Throws:
UtilityException
-
parseCommonHeader
public static MessageAttribute parseCommonHeader(byte[] data) throws MessageAttributeParsingException - Throws:
MessageAttributeParsingException
-