Package de.javawi.jstun.attribute
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 de.javawi.jstun.attribute.MessageAttributeInterface
MessageAttributeInterface.MessageAttributeType
-
Field Summary
Fields inherited from interface de.javawi.jstun.attribute.MessageAttributeInterface
CHANGEDADDRESS, CHANGEREQUEST, DUMMY, ERRORCODE, MAPPEDADDRESS, MESSAGEINTEGRITY, PASSWORD, REFLECTEDFROM, RESPONSEADDRESS, SOURCEADDRESS, UNKNOWNATTRIBUTE, USERNAME
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]
getBytes()
int
getType()
intToType
(long type) static MessageAttribute
parseCommonHeader
(byte[] data) void
static 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
-