Class MappedResponseChangedSourceAddressReflectedFrom
java.lang.Object
de.javawi.jstun.attribute.MessageAttribute
de.javawi.jstun.attribute.MappedResponseChangedSourceAddressReflectedFrom
- All Implemented Interfaces:
MessageAttributeInterface
- Direct Known Subclasses:
ChangedAddress, MappedAddress, ReflectedFrom, ResponseAddress, SourceAddress
-
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()intgetPort()protected static MappedResponseChangedSourceAddressReflectedFromparse(MappedResponseChangedSourceAddressReflectedFrom ma, byte[] data) voidsetAddress(Address address) voidsetPort(int port) toString()Methods inherited from class MessageAttribute
getLength, getType, intToType, parseCommonHeader, setType, typeToInteger
-
Constructor Details
-
MappedResponseChangedSourceAddressReflectedFrom
public MappedResponseChangedSourceAddressReflectedFrom() -
MappedResponseChangedSourceAddressReflectedFrom
public MappedResponseChangedSourceAddressReflectedFrom(MessageAttributeInterface.MessageAttributeType type)
-
-
Method Details
-
getPort
public int getPort() -
getAddress
-
setPort
- Throws:
MessageAttributeException
-
setAddress
-
getBytes
- Specified by:
getBytesin classMessageAttribute- Throws:
UtilityException
-
parse
protected static MappedResponseChangedSourceAddressReflectedFrom parse(MappedResponseChangedSourceAddressReflectedFrom ma, byte[] data) throws MessageAttributeParsingException - Throws:
MessageAttributeParsingException
-
toString
-