Class ErrorCode
java.lang.Object
de.javawi.jstun.attribute.MessageAttribute
de.javawi.jstun.attribute.ErrorCode
- All Implemented Interfaces:
MessageAttributeInterface
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()intstatic ErrorCodeparse(byte[] data) voidsetResponseCode(int responseCode) Methods inherited from class MessageAttribute
getLength, getType, intToType, parseCommonHeader, setType, typeToInteger
-
Constructor Details
-
ErrorCode
public ErrorCode()
-
-
Method Details
-
setResponseCode
- Throws:
MessageAttributeException
-
getResponseCode
public int getResponseCode() -
getReason
-
getBytes
- Specified by:
getBytesin classMessageAttribute- Throws:
UtilityException
-
parse
- Throws:
MessageAttributeParsingException
-