Uses of Interface
jakarta.websocket.Session
Package
Description
This package contains all the Jakarta WebSocket APIs common to both the client and server side.
-
Uses of Session in com.sun.faces.push
Modifier and TypeMethodDescriptionprotected boolean
On open, add given web socket session to the mapping associated with its channel identifier and returnstrue
if it's accepted (i.e.void
WebsocketEndpoint.onClose
(Session session, CloseReason reason) Remove given web socket session from theWebsocketSessionManager
.void
Delegate exception to onClose.void
WebsocketEndpoint.onOpen
(Session session, EndpointConfig config) Add given web socket session to theWebocketSessionManager
.protected void
WebsocketSessionManager.remove
(Session session, CloseReason reason) On close, remove given web socket session from the mapping. -
Uses of Session in jakarta.websocket
Modifier and TypeMethodDescriptionWebSocketContainer.connectToServer
(Endpoint endpointInstance, ClientEndpointConfig cec, URI path) Connect the supplied programmatic client endpoint instance to its server with the given configuration.WebSocketContainer.connectToServer
(Class<?> annotatedEndpointClass, URI path) Connect the supplied annotated endpoint to its server.WebSocketContainer.connectToServer
(Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, URI path) Connect the supplied programmatic endpoint to its server with the given configuration.WebSocketContainer.connectToServer
(Object annotatedEndpointInstance, URI path) Connect the supplied annotated endpoint instance to its server.SendResult.getSession()
The WebSocket session in which the session was sent.SessionException.getSession()
Return the Session on which the problem occurred.Modifier and TypeMethodDescriptionSession.getOpenSessions()
Return a copy of the Set of all the open web socket sessions that represent connections to the same endpoint to which this session represents a connection.Modifier and TypeMethodDescriptionvoid
Endpoint.onClose
(Session session, CloseReason closeReason) This method is called immediately prior to the session with the remote peer being closed.void
Developers may implement this method when the web socket session creates some kind of error that is not modeled in the web socket protocol.abstract void
Endpoint.onOpen
(Session session, EndpointConfig config) Developers must implement this method to be notified when a new conversation has just begun.ModifierConstructorDescriptionSendResult
(Session session) Construct a SendResult signifying a successful send carrying no exception.SendResult
(Session session, Throwable exception) Construct a SendResult carrying an exception.SessionException
(String message, Throwable cause, Session session) Creates a new instance of this exception with the given message, the wrapped cause of the exception and the session with which the problem is associated.