public class BaseStunMessageEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
private Message |
message
The STUN Message associated with this event.
|
private static long |
serialVersionUID
A dummy version UID to suppress warnings.
|
private StunStack |
stunStack
The StunStack associated with this instance.
|
private TransactionID |
transactionID
The ID of the transaction related to
message . |
source
Constructor and Description |
---|
BaseStunMessageEvent(StunStack stunStack,
TransportAddress sourceAddress,
Message message)
Initializes a new BaseStunMessageEvent associated with a
specific STUN Message.
|
Modifier and Type | Method and Description |
---|---|
Message |
getMessage()
Gets the STUN Message associated with this event.
|
protected TransportAddress |
getSourceAddress()
Gets the TransportAddress which is the source of this event.
|
StunStack |
getStunStack()
Gets the StunStack associated with this instance.
|
TransactionID |
getTransactionID()
Gets the ID of the transaction related to the STUN Message
associated with this event.
|
protected 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.
|
getSource, toString
private static final long serialVersionUID
private final Message message
private final StunStack stunStack
private TransactionID transactionID
message
.public BaseStunMessageEvent(StunStack stunStack, TransportAddress sourceAddress, Message message)
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 eventpublic Message getMessage()
protected TransportAddress getSourceAddress()
public StunStack getStunStack()
public TransactionID getTransactionID()
protected void setTransactionID(TransactionID tranID)
tranID
- the ID of the transaction associated with this event.Copyright © 2018. All rights reserved.