Package de.javawi.jstun.attribute
Class ChangeRequest
- java.lang.Object
-
- de.javawi.jstun.attribute.MessageAttribute
-
- de.javawi.jstun.attribute.ChangeRequest
-
- All Implemented Interfaces:
MessageAttributeInterface
public class ChangeRequest extends MessageAttribute
-
-
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
Constructors Constructor Description ChangeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
boolean
isChangeIP()
boolean
isChangePort()
static ChangeRequest
parse(byte[] data)
void
setChangeIP()
void
setChangePort()
-
Methods inherited from class de.javawi.jstun.attribute.MessageAttribute
getLength, getType, intToType, parseCommonHeader, setType, typeToInteger
-
-
-
-
Method Detail
-
isChangeIP
public boolean isChangeIP()
-
isChangePort
public boolean isChangePort()
-
setChangeIP
public void setChangeIP()
-
setChangePort
public void setChangePort()
-
getBytes
public byte[] getBytes() throws UtilityException
- Specified by:
getBytes
in classMessageAttribute
- Throws:
UtilityException
-
parse
public static ChangeRequest parse(byte[] data) throws MessageAttributeParsingException
- Throws:
MessageAttributeParsingException
-
-