Interface TyrusClientEngine.ClientHandshakeListener

  • Enclosing class:
    TyrusClientEngine

    public static interface TyrusClientEngine.ClientHandshakeListener
    Called when response is received from the server.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onError​(java.lang.Throwable exception)
      Called when an error is found in handshake response.
      void onSessionCreated​(jakarta.websocket.Session session)
      Invoked when handshake is completed and provided Session is open and ready to be returned from WebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI) (and alternatives) call.
    • Method Detail

      • onSessionCreated

        void onSessionCreated​(jakarta.websocket.Session session)
        Invoked when handshake is completed and provided Session is open and ready to be returned from WebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI) (and alternatives) call.
        Parameters:
        session - opened client session.
      • onError

        void onError​(java.lang.Throwable exception)
        Called when an error is found in handshake response.
        Parameters:
        exception - error found during handshake response check.