-
- All Implemented Interfaces:
-
java.io.Serializable
public class BaseStunMessageEvent extends EventObject
Represents an EventObject which notifies of an event associated with a specific STUN Message.
-
-
Field Summary
Fields Modifier and Type Field Description private final Messagemessageprivate final StunStackstunStackprivate TransactionIDtransactionID
-
Constructor Summary
Constructors Constructor Description BaseStunMessageEvent(StunStack stunStack, TransportAddress sourceAddress, Message message)Initializes a new BaseStunMessageEvent associated with a specific STUN Message.
-
Method Summary
Modifier and Type Method Description MessagegetMessage()Gets the STUN Message associated with this event. StunStackgetStunStack()Gets the StunStack associated with this instance. TransactionIDgetTransactionID()Gets the ID of the transaction related to the STUN Message associated with this event. voidsetTransactionID(TransactionID tranID)Allows descendants of this class to set the transaction ID so that we don't need to look it up later. -
-
Constructor Detail
-
BaseStunMessageEvent
BaseStunMessageEvent(StunStack stunStack, TransportAddress sourceAddress, Message message)
Initializes a new BaseStunMessageEvent associated with a specific STUN Message.- Parameters:
stunStack- the StunStack to be associated with the new instancesourceAddress- the TransportAddress which is to be reported as the source of the new eventmessage- the STUN Message associated with the new event
-
-
Method Detail
-
getMessage
Message getMessage()
Gets the STUN Message associated with this event.
-
getStunStack
StunStack getStunStack()
Gets the StunStack associated with this instance.
-
getTransactionID
TransactionID getTransactionID()
Gets the ID of the transaction related to the STUN Message associated with this event.
-
setTransactionID
void setTransactionID(TransactionID tranID)
Allows descendants of this class to set the transaction ID so that we don't need to look it up later. This is not mandatory.
- Parameters:
tranID- the ID of the transaction associated with this event.
-
-
-
-