Package 

Class StunResponseEvent

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class StunResponseEvent
    extends StunMessageEvent
                        

    The class is used to dispatch incoming STUN Responses. Apart from the Response itself this event also carries a reference to the Request that started the corresponding transaction as well as other useful things.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Request request
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Request getRequest() Returns the Request that started the transaction that this Response has just arrived in.
      Response getResponse() Returns the Response that has just arrived and that caused this event.
      • Methods inherited from class org.ice4j.StunMessageEvent

        getLocalAddress, getRawMessage, getRemoteAddress, toString
      • Methods inherited from class org.ice4j.BaseStunMessageEvent

        getMessage, getStunStack, getTransactionID
      • 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

      • StunResponseEvent

        StunResponseEvent(StunStack stunStack, RawMessage rawMessage, Response response, Request request, TransactionID transactionID)
        Creates a new instance of this event.
        Parameters:
        stunStack - the StunStack to be associated with the new instance
        rawMessage - the crude message we got off the wire.
        response - the STUN Response that we've just received.
        request - the message itself
        transactionID - a reference to the exact TransactionID instance that represents the corresponding client transaction.