de.javawi.jstun.attribute
Class ErrorCode
java.lang.Object
de.javawi.jstun.attribute.MessageAttribute
de.javawi.jstun.attribute.ErrorCode
- All Implemented Interfaces:
- MessageAttributeInterface
public class ErrorCode
- extends MessageAttribute
Fields inherited from interface de.javawi.jstun.attribute.MessageAttributeInterface |
CHANGEDADDRESS, CHANGEREQUEST, DUMMY, ERRORCODE, MAPPEDADDRESS, MESSAGEINTEGRITY, PASSWORD, REFLECTEDFROM, RESPONSEADDRESS, SOURCEADDRESS, UNKNOWNATTRIBUTE, USERNAME |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorCode
public ErrorCode()
setResponseCode
public void setResponseCode(int responseCode)
throws MessageAttributeException
- Throws:
MessageAttributeException
getResponseCode
public int getResponseCode()
getReason
public String getReason()
getBytes
public byte[] getBytes()
throws UtilityException
- Specified by:
getBytes
in class MessageAttribute
- Throws:
UtilityException
parse
public static ErrorCode parse(byte[] data)
throws MessageAttributeParsingException
- Throws:
MessageAttributeParsingException