Package 

Interface RequestListener

  • All Implemented Interfaces:

    
    public interface RequestListener
    
                        

    Handles incoming requests.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void processRequest(StunMessageEvent evt) Called when delivering incoming STUN requests.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • processRequest

         abstract void processRequest(StunMessageEvent evt)

        Called when delivering incoming STUN requests. Throwing an IllegalArgumentException from within this method would cause the stack to reply with a 400 Bad RequestResponse using the exception's message as a reason phrase for the error response. Any other exception would result in a 500 Server Error.

        Parameters:
        evt - the event containing the incoming STUN request.