Uses of Class
jakarta.websocket.CloseReason
Package
Description
This package contains all the Jakarta WebSocket APIs common to both the client and server side.
Common Client.
Core classes.
Cluster relates classes and interfaces.
WebSocket frame representations.
Tyrus SPI.
-
Uses of CloseReason in jakarta.websocket
Modifier and TypeMethodDescriptionvoid
Session.close
(CloseReason closeReason) Close the current conversation, giving a reason for the closure.void
Endpoint.onClose
(Session session, CloseReason closeReason) This method is called immediately prior to the session with the remote peer being closed. -
Uses of CloseReason in org.glassfish.tyrus.client
Modifier and TypeMethodDescriptionboolean
ClientManager.ReconnectHandler.onDisconnect
(CloseReason closeReason) Called afterOnClose
annotated method (orEndpoint.onClose(jakarta.websocket.Session, jakarta.websocket.CloseReason)
is invoked. -
Uses of CloseReason in org.glassfish.tyrus.core
Modifier and TypeMethodDescriptionstatic CloseReason
CloseReasons.create
(CloseReason.CloseCode closeCode, String reasonPhrase) CloseReasons.getCloseReason()
Get close reason.ProtocolException.getCloseReason()
Utf8DecodingException.getCloseReason()
abstract CloseReason
WebSocketException.getCloseReason()
Get close reason.Modifier and TypeMethodDescriptionvoid
TyrusRemoteEndpoint.close
(CloseReason cr) void
TyrusSession.close
(CloseReason closeReason) void
TyrusWebSocket.close
(CloseReason closeReason) Closes thisTyrusWebSocket
using theCloseReason
.void
AnnotatedEndpoint.onClose
(Session session, CloseReason closeReason) void
TyrusEndpointWrapper.SessionListener.onClose
(TyrusSession session, CloseReason closeReason) Invoked afterOnClose
annotated method orEndpoint.onClose(jakarta.websocket.Session, jakarta.websocket.CloseReason)
execution. -
Uses of CloseReason in org.glassfish.tyrus.core.cluster
Modifier and TypeMethodDescriptionClusterContext.close
(String sessionId, CloseReason closeReason) Close remote session with customCloseReason
.void
RemoteSession.close
(CloseReason closeReason) Close the current conversation, giving a reason for the closure.void
SessionEventListener.onClose
(CloseReason closeReason) Invoked on session close event. -
Uses of CloseReason in org.glassfish.tyrus.core.frame
-
Uses of CloseReason in org.glassfish.tyrus.spi
Modifier and TypeMethodDescriptionvoid
Connection.close
(CloseReason reason) Notifies tyrus that underlying transport is closing the connection.void
Connection.CloseListener.close
(CloseReason reason) Tyrus notifies that logical connection is closed.