Package 

Class BaseStunMessageEvent

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Message getMessage() Gets the STUN Message associated with 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.
      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.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 instance
        sourceAddress - the TransportAddress which is to be reported as the source of the new event
        message - the STUN Message associated with the new event
    • Method Detail

      • 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.