Interface TyrusClientEngine.ClientHandshakeListener

Enclosing class:
TyrusClientEngine

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

    Modifier and Type
    Method
    Description
    void
    onError(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 Details

    • 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(Throwable exception)
      Called when an error is found in handshake response.
      Parameters:
      exception - error found during handshake response check.