Package org.glassfish.tyrus.client
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(Session session)
Invoked when handshake is completed and providedSession
is open and ready to be returned fromWebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI)
(and alternatives) call.
-
-
-
Method Detail
-
onSessionCreated
void onSessionCreated(Session session)
Invoked when handshake is completed and providedSession
is open and ready to be returned fromWebSocketContainer.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.
-
-