Uses of Interface
javax.websocket.Session
| Package | Description |
|---|---|
| javax.websocket |
This package contains all the Jakartq WebSocket APIs common to both the client and server side.
|
-
Uses of Session in javax.websocket
Methods in javax.websocket that return Session Modifier and Type Method Description 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.SessionWebSocketContainer. connectToServer(Endpoint endpointInstance, ClientEndpointConfig cec, java.net.URI path)Connect the supplied programmatic client endpoint instance to its server with the given configuration.SessionSessionException. getSession()Return the Session on which the problem occurred.Methods in javax.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 javax.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 javax.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.