Uses of Interface
jakarta.websocket.Session
Packages that use Session
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.
Server implementation.
-
Uses of Session in jakarta.websocket
Methods in jakarta.websocket that return SessionModifier 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.SessionException.getSession()Return the Session on which the problem occurred.Methods in jakarta.websocket that return types with arguments of type SessionModifier 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.Methods in jakarta.websocket with parameters of type SessionModifier and TypeMethodDescriptionvoidEndpoint.onClose(Session session, CloseReason closeReason) This method is called immediately prior to the session with the remote peer being closed.voidDevelopers may implement this method when the web socket session creates some kind of error that is not modeled in the web socket protocol.abstract voidEndpoint.onOpen(Session session, EndpointConfig config) Developers must implement this method to be notified when a new conversation has just begun.Constructors in jakarta.websocket with parameters of type SessionModifierConstructorDescriptionSessionException(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. -
Uses of Session in org.glassfish.tyrus.client
Methods in org.glassfish.tyrus.client that return SessionModifier and TypeMethodDescriptionClientManager.connectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, URI path) ClientManager.connectToServer(Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, URI path) ClientManager.connectToServer(Class annotatedEndpointClass, URI path) ClientManager.connectToServer(Object obj, URI path) Methods in org.glassfish.tyrus.client that return types with arguments of type SessionModifier and TypeMethodDescriptionClientManager.asyncConnectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, URI path) ClientManager.asyncConnectToServer(Class<?> annotatedEndpointClass, URI path) Non-blocking version ofWebSocketContainer.connectToServer(Class, java.net.URI).ClientManager.asyncConnectToServer(Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, URI path) Non-blocking version ofWebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI).ClientManager.asyncConnectToServer(Object obj, URI path) Non-blocking version ofWebSocketContainer.connectToServer(Object, java.net.URI).Methods in org.glassfish.tyrus.client with parameters of type SessionModifier and TypeMethodDescriptionvoidTyrusClientEngine.ClientHandshakeListener.onSessionCreated(Session session) Invoked when handshake is completed and providedSessionis open and ready to be returned fromWebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI)(and alternatives) call. -
Uses of Session in org.glassfish.tyrus.core
Classes in org.glassfish.tyrus.core that implement SessionMethods in org.glassfish.tyrus.core that return SessionModifier and TypeMethodDescriptionTyrusEndpointWrapper.createSessionForRemoteEndpoint(TyrusWebSocket socket, String subprotocol, List<Extension> extensions, DebugContext debugContext) Creates a Session based on theTyrusWebSocket, subprotocols and extensions.Methods in org.glassfish.tyrus.core that return types with arguments of type SessionModifier and TypeMethodDescriptionBroadcasts text message to all connected clients.TyrusSession.broadcast(ByteBuffer message) Broadcasts binary message to all connected clients, including remote sessions (if any).TyrusSession.getOpenSessions()Methods in org.glassfish.tyrus.core with parameters of type SessionModifier and TypeMethodDescription<T> ObjectComponentProviderService.getCoderInstance(Class<T> c, Session session, EndpointConfig endpointConfig, ErrorCollector collector) <T> ObjectComponentProviderService.getInstance(Class<T> c, Session session, ErrorCollector collector) Provide an instance of class which is coupled toSession.voidAnnotatedEndpoint.onClose(Session session, CloseReason closeReason) voidvoidAnnotatedEndpoint.onOpen(Session session, EndpointConfig configuration) voidComponentProviderService.removeSession(Session session) RemoveSessionfrom cache. -
Uses of Session in org.glassfish.tyrus.core.cluster
Subinterfaces of Session in org.glassfish.tyrus.core.clusterModifier and TypeInterfaceDescriptioninterfaceExtendedSessionwhich adds distributed properties.Classes in org.glassfish.tyrus.core.cluster that implement SessionModifier and TypeClassDescriptionclassRemote session represents session originating from another node.Methods in org.glassfish.tyrus.core.cluster that return types with arguments of type SessionModifier and TypeMethodDescriptionRemoteSession.getOpenSessions()This method is not supported onRemoteSession.Constructors in org.glassfish.tyrus.core.cluster with parameters of type SessionModifierConstructorDescriptionRemoteSession(String sessionId, ClusterContext clusterContext, Map<RemoteSession.DistributedMapKey, Object> distributedPropertyMap, TyrusEndpointWrapper endpointWrapper, Session session) Constructor.SessionEventListener(Session session) Constructor. -
Uses of Session in org.glassfish.tyrus.server
Methods in org.glassfish.tyrus.server that return SessionModifier and TypeMethodDescriptionTyrusServerContainer.connectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, URI path) TyrusServerContainer.connectToServer(Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, URI path) TyrusServerContainer.connectToServer(Class annotatedEndpointClass, URI path) TyrusServerContainer.connectToServer(Object annotatedEndpointInstance, URI path) Methods in org.glassfish.tyrus.server that return types with arguments of type SessionModifier and TypeMethodDescriptionTyrusServerContainer.asyncConnectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, URI path) TyrusServerContainer.asyncConnectToServer(Class<?> annotatedEndpointClass, URI path) Non-blocking version ofWebSocketContainer.connectToServer(Class, java.net.URI).TyrusServerContainer.asyncConnectToServer(Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, URI path) Non-blocking version ofWebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI).TyrusServerContainer.asyncConnectToServer(Object obj, URI path) Non-blocking version ofWebSocketContainer.connectToServer(Object, java.net.URI).