Uses of Interface
jakarta.websocket.Session
-
Packages that use Session Package Description jakarta.websocket This package contains all the Jakarta WebSocket APIs common to both the client and server side.org.glassfish.tyrus.client Common Client.org.glassfish.tyrus.core Core classes.org.glassfish.tyrus.core.cluster Cluster relates classes and interfaces. -
-
Uses of Session in jakarta.websocket
Methods in jakarta.websocket that return Session Modifier and Type Method Description SessionWebSocketContainer. connectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, java.net.URI path)Connect the supplied programmatic client endpoint instance to its server with the given configuration.SessionWebSocketContainer. connectToServer(java.lang.Class<?> annotatedEndpointClass, java.net.URI path)Connect the supplied annotated endpoint to its server.SessionWebSocketContainer. connectToServer(java.lang.Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, java.net.URI path)Connect the supplied programmatic endpoint to its server with the given configuration.SessionWebSocketContainer. connectToServer(java.lang.Object annotatedEndpointInstance, java.net.URI path)Connect the supplied annotated endpoint instance to its server.SessionSessionException. getSession()Return the Session on which the problem occurred.Methods in jakarta.websocket that return types with arguments of type Session Modifier and Type Method Description java.util.Set<Session>Session. 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 Session Modifier and Type Method Description voidEndpoint. onClose(Session session, CloseReason closeReason)This method is called immediately prior to the session with the remote peer being closed.voidEndpoint. onError(Session session, java.lang.Throwable thr)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 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 Session Constructor Description SessionException(java.lang.String message, java.lang.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 Session Modifier and Type Method Description SessionClientManager. connectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, java.net.URI path)SessionClientManager. connectToServer(java.lang.Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, java.net.URI path)SessionClientManager. connectToServer(java.lang.Class annotatedEndpointClass, java.net.URI path)SessionClientManager. connectToServer(java.lang.Object obj, java.net.URI path)Methods in org.glassfish.tyrus.client that return types with arguments of type Session Modifier and Type Method Description java.util.concurrent.Future<Session>ClientManager. asyncConnectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, java.net.URI path)java.util.concurrent.Future<Session>ClientManager. asyncConnectToServer(java.lang.Class<?> annotatedEndpointClass, java.net.URI path)Non-blocking version ofWebSocketContainer.connectToServer(Class, java.net.URI).java.util.concurrent.Future<Session>ClientManager. asyncConnectToServer(java.lang.Class<? extends Endpoint> endpointClass, ClientEndpointConfig cec, java.net.URI path)Non-blocking version ofWebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI).java.util.concurrent.Future<Session>ClientManager. asyncConnectToServer(java.lang.Object obj, java.net.URI path)Non-blocking version ofWebSocketContainer.connectToServer(Object, java.net.URI).Methods in org.glassfish.tyrus.client with parameters of type Session Modifier and Type Method Description voidTyrusClientEngine.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 Session Modifier and Type Class Description classTyrusSessionImplementation of theSession.Methods in org.glassfish.tyrus.core that return Session Modifier and Type Method Description SessionTyrusEndpointWrapper. createSessionForRemoteEndpoint(TyrusWebSocket socket, java.lang.String subprotocol, java.util.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 Session Modifier and Type Method Description java.util.Map<Session,java.util.concurrent.Future<?>>TyrusSession. broadcast(java.lang.String message)Broadcasts text message to all connected clients.java.util.Map<Session,java.util.concurrent.Future<?>>TyrusSession. broadcast(java.nio.ByteBuffer message)Broadcasts binary message to all connected clients, including remote sessions (if any).java.util.Set<Session>TyrusSession. getOpenSessions()Methods in org.glassfish.tyrus.core with parameters of type Session Modifier and Type Method Description java.lang.ObjectTyrusEndpointWrapper. doEncode(Session session, java.lang.Object message)<T> java.lang.ObjectComponentProviderService. getCoderInstance(java.lang.Class<T> c, Session session, EndpointConfig endpointConfig, ErrorCollector collector)<T> java.lang.ObjectComponentProviderService. getInstance(java.lang.Class<T> c, Session session, ErrorCollector collector)Provide an instance of class which is coupled toSession.voidAnnotatedEndpoint. onClose(Session session, CloseReason closeReason)voidAnnotatedEndpoint. onError(Session session, java.lang.Throwable thr)voidAnnotatedEndpoint. 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.cluster Modifier and Type Interface Description interfaceDistributedSessionExtendedSessionwhich adds distributed properties.Classes in org.glassfish.tyrus.core.cluster that implement Session Modifier and Type Class Description classRemoteSessionRemote session represents session originating from another node.Methods in org.glassfish.tyrus.core.cluster that return types with arguments of type Session Modifier and Type Method Description java.util.Set<Session>RemoteSession. getOpenSessions()This method is not supported onRemoteSession.Constructors in org.glassfish.tyrus.core.cluster with parameters of type Session Constructor Description RemoteSession(java.lang.String sessionId, ClusterContext clusterContext, java.util.Map<RemoteSession.DistributedMapKey,java.lang.Object> distributedPropertyMap, TyrusEndpointWrapper endpointWrapper, Session session)Constructor.SessionEventListener(Session session)Constructor.
-