Uses of Interface
org.springframework.web.socket.WebSocketSession
Packages that use WebSocketSession
Package
Description
Common abstractions and Spring configuration support for WebSocket applications.
Classes adapting Spring's WebSocket API to and from WebSocket providers.
Adapter classes for the Jetty WebSocket API.
Adapter classes for the standard Jakarta WebSocket API.
Client-side abstractions for WebSocket applications.
Client-side classes for use with standard Jakarta WebSocket endpoints.
Convenient
WebSocketHandler
implementations and decorators.WebSocket integration for Spring's messaging module.
SockJS client implementation of
WebSocketClient.Server-side support for SockJS transports including
TransportHandler implementations
for processing incoming requests, their
session
counterparts for sending messages over the various transports, and
DefaultSockJsService.TransportHandler
implementation classes as well as a concrete
SockJsService.SockJS specific implementations of
WebSocketSession.-
Uses of WebSocketSession in org.springframework.web.socket
Methods in org.springframework.web.socket with parameters of type WebSocketSessionModifier and TypeMethodDescriptionvoidWebSocketHandler.afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) Invoked after the WebSocket connection has been closed by either side, or after a transport error has occurred.voidWebSocketHandler.afterConnectionEstablished(WebSocketSession session) Invoked after WebSocket negotiation has succeeded and the WebSocket connection is opened and ready for use.voidWebSocketHandler.handleMessage(WebSocketSession session, WebSocketMessage<?> message) Invoked when a new WebSocket message arrives.voidWebSocketHandler.handleTransportError(WebSocketSession session, Throwable exception) Handle an error from the underlying WebSocket message transport. -
Uses of WebSocketSession in org.springframework.web.socket.adapter
Subinterfaces of WebSocketSession in org.springframework.web.socket.adapterModifier and TypeInterfaceDescriptioninterfaceAWebSocketSessionthat exposes the underlying, native WebSocketSession through a getter.Classes in org.springframework.web.socket.adapter that implement WebSocketSessionModifier and TypeClassDescriptionclassAn abstract base class for implementations ofWebSocketSession. -
Uses of WebSocketSession in org.springframework.web.socket.adapter.jetty
Classes in org.springframework.web.socket.adapter.jetty that implement WebSocketSession -
Uses of WebSocketSession in org.springframework.web.socket.adapter.standard
Classes in org.springframework.web.socket.adapter.standard that implement WebSocketSessionModifier and TypeClassDescriptionclassAWebSocketSessionfor use with the standard WebSocket for Java API. -
Uses of WebSocketSession in org.springframework.web.socket.client
Methods in org.springframework.web.socket.client that return types with arguments of type WebSocketSessionModifier and TypeMethodDescriptionAbstractWebSocketClient.execute(WebSocketHandler webSocketHandler, String uriTemplate, @Nullable Object... uriVars) AbstractWebSocketClient.execute(WebSocketHandler webSocketHandler, @Nullable WebSocketHttpHeaders headers, URI uri) WebSocketClient.execute(WebSocketHandler webSocketHandler, String uriTemplate, @Nullable Object... uriVariables) Execute a handshake request to the given url and handle the resulting WebSocket session with the given handler.WebSocketClient.execute(WebSocketHandler webSocketHandler, @Nullable WebSocketHttpHeaders headers, URI uri) Execute a handshake request to the given url and handle the resulting WebSocket session with the given handler.protected abstract CompletableFuture<WebSocketSession> AbstractWebSocketClient.executeInternal(WebSocketHandler webSocketHandler, HttpHeaders headers, URI uri, List<String> subProtocols, List<WebSocketExtension> extensions, Map<String, Object> attributes) Perform the actual handshake to establish a connection to the server. -
Uses of WebSocketSession in org.springframework.web.socket.client.standard
Methods in org.springframework.web.socket.client.standard that return types with arguments of type WebSocketSessionModifier and TypeMethodDescriptionprotected CompletableFuture<WebSocketSession> StandardWebSocketClient.executeInternal(WebSocketHandler webSocketHandler, HttpHeaders headers, URI uri, List<String> protocols, List<WebSocketExtension> extensions, Map<String, Object> attributes) -
Uses of WebSocketSession in org.springframework.web.socket.handler
Classes in org.springframework.web.socket.handler that implement WebSocketSessionModifier and TypeClassDescriptionclassWrap aWebSocketSessionto guarantee only one thread can send messages at a time.classWraps anotherWebSocketSessioninstance and delegates to it.Methods in org.springframework.web.socket.handler that return WebSocketSessionModifier and TypeMethodDescriptionWebSocketSessionDecorator.getDelegate()WebSocketSessionDecorator.getLastSession()static WebSocketSessionWebSocketSessionDecorator.unwrap(WebSocketSession session) Methods in org.springframework.web.socket.handler with parameters of type WebSocketSessionModifier and TypeMethodDescriptionvoidAbstractWebSocketHandler.afterConnectionClosed(WebSocketSession session, CloseStatus status) voidExceptionWebSocketHandlerDecorator.afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) voidLoggingWebSocketHandlerDecorator.afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) voidPerConnectionWebSocketHandler.afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) voidWebSocketHandlerDecorator.afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) voidAbstractWebSocketHandler.afterConnectionEstablished(WebSocketSession session) voidExceptionWebSocketHandlerDecorator.afterConnectionEstablished(WebSocketSession session) voidLoggingWebSocketHandlerDecorator.afterConnectionEstablished(WebSocketSession session) voidPerConnectionWebSocketHandler.afterConnectionEstablished(WebSocketSession session) voidWebSocketHandlerDecorator.afterConnectionEstablished(WebSocketSession session) protected voidAbstractWebSocketHandler.handleBinaryMessage(WebSocketSession session, BinaryMessage message) protected voidTextWebSocketHandler.handleBinaryMessage(WebSocketSession session, BinaryMessage message) voidAbstractWebSocketHandler.handleMessage(WebSocketSession session, WebSocketMessage<?> message) voidExceptionWebSocketHandlerDecorator.handleMessage(WebSocketSession session, WebSocketMessage<?> message) voidLoggingWebSocketHandlerDecorator.handleMessage(WebSocketSession session, WebSocketMessage<?> message) voidPerConnectionWebSocketHandler.handleMessage(WebSocketSession session, WebSocketMessage<?> message) voidWebSocketHandlerDecorator.handleMessage(WebSocketSession session, WebSocketMessage<?> message) protected voidAbstractWebSocketHandler.handlePongMessage(WebSocketSession session, PongMessage message) protected voidAbstractWebSocketHandler.handleTextMessage(WebSocketSession session, TextMessage message) protected voidBinaryWebSocketHandler.handleTextMessage(WebSocketSession session, TextMessage message) voidAbstractWebSocketHandler.handleTransportError(WebSocketSession session, Throwable exception) voidExceptionWebSocketHandlerDecorator.handleTransportError(WebSocketSession session, Throwable exception) voidLoggingWebSocketHandlerDecorator.handleTransportError(WebSocketSession session, Throwable exception) voidPerConnectionWebSocketHandler.handleTransportError(WebSocketSession session, Throwable exception) voidWebSocketHandlerDecorator.handleTransportError(WebSocketSession session, Throwable exception) static voidExceptionWebSocketHandlerDecorator.tryCloseWithError(WebSocketSession session, Throwable exception, org.apache.commons.logging.Log logger) static WebSocketSessionWebSocketSessionDecorator.unwrap(WebSocketSession session) Constructors in org.springframework.web.socket.handler with parameters of type WebSocketSessionModifierConstructorDescriptionConcurrentWebSocketSessionDecorator(WebSocketSession delegate, int sendTimeLimit, int bufferSizeLimit) Basic constructor.ConcurrentWebSocketSessionDecorator(WebSocketSession delegate, int sendTimeLimit, int bufferSizeLimit, ConcurrentWebSocketSessionDecorator.OverflowStrategy overflowStrategy) Constructor that also specifies the overflow strategy to use. -
Uses of WebSocketSession in org.springframework.web.socket.messaging
Methods in org.springframework.web.socket.messaging that return WebSocketSessionModifier and TypeMethodDescriptionprotected WebSocketSessionSubProtocolWebSocketHandler.decorateSession(WebSocketSession session) Decorate the givenWebSocketSession, if desired.Methods in org.springframework.web.socket.messaging with parameters of type WebSocketSessionModifier and TypeMethodDescriptionvoidSubProtocolWebSocketHandler.afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) voidSubProtocolWebSocketHandler.afterConnectionEstablished(WebSocketSession session) voidStompSubProtocolHandler.afterSessionEnded(WebSocketSession session, CloseStatus closeStatus, MessageChannel outputChannel) voidSubProtocolHandler.afterSessionEnded(WebSocketSession session, CloseStatus closeStatus, MessageChannel outputChannel) Invoked after aWebSocketSessionhas ended.voidStompSubProtocolHandler.afterSessionStarted(WebSocketSession session, MessageChannel outputChannel) voidSubProtocolHandler.afterSessionStarted(WebSocketSession session, MessageChannel outputChannel) Invoked after aWebSocketSessionhas started.protected WebSocketSessionSubProtocolWebSocketHandler.decorateSession(WebSocketSession session) Decorate the givenWebSocketSession, if desired.protected final SubProtocolHandlerSubProtocolWebSocketHandler.findProtocolHandler(WebSocketSession session) Find aSubProtocolHandlerfor the given session.voidSubProtocolWebSocketHandler.handleMessage(WebSocketSession session, WebSocketMessage<?> message) Handle an inbound message from a WebSocket client.voidStompSubProtocolHandler.handleMessageFromClient(WebSocketSession session, WebSocketMessage<?> webSocketMessage, MessageChannel channel) Handle incoming WebSocket messages from clients.voidSubProtocolHandler.handleMessageFromClient(WebSocketSession session, WebSocketMessage<?> message, MessageChannel outputChannel) Handle the givenWebSocketMessagereceived from a client.voidStompSubProtocolHandler.handleMessageToClient(WebSocketSession session, Message<?> message) Handle STOMP messages going back out to WebSocket clients.voidSubProtocolHandler.handleMessageToClient(WebSocketSession session, Message<?> message) Handle the givenMessageto the client associated with the given WebSocket session.voidSubProtocolWebSocketHandler.handleTransportError(WebSocketSession session, Throwable exception) -
Uses of WebSocketSession in org.springframework.web.socket.sockjs.client
Classes in org.springframework.web.socket.sockjs.client that implement WebSocketSessionModifier and TypeClassDescriptionclassBase class for SockJS client implementations ofWebSocketSession.classAn extension ofAbstractClientSockJsSessionwrapping and delegating to an actual WebSocket session.classAn extension ofAbstractClientSockJsSessionfor use with HTTP transports simulating a WebSocket session.Methods in org.springframework.web.socket.sockjs.client that return types with arguments of type WebSocketSessionModifier and TypeMethodDescriptionAbstractXhrTransport.connectAsync(TransportRequest request, WebSocketHandler handler) Transport.connectAsync(TransportRequest request, WebSocketHandler webSocketHandler) Connect the transport.WebSocketTransport.connectAsync(TransportRequest request, WebSocketHandler handler) SockJsClient.execute(WebSocketHandler handler, String uriTemplate, @Nullable Object... uriVars) SockJsClient.execute(WebSocketHandler handler, @Nullable WebSocketHttpHeaders headers, URI url) Methods in org.springframework.web.socket.sockjs.client with parameters of type WebSocketSessionModifier and TypeMethodDescriptionvoidWebSocketClientSockJsSession.initializeDelegateSession(WebSocketSession session) Method parameters in org.springframework.web.socket.sockjs.client with type arguments of type WebSocketSessionModifier and TypeMethodDescriptionprotected abstract voidAbstractXhrTransport.connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFuture<WebSocketSession> connectFuture) protected voidJettyXhrTransport.connectInternal(TransportRequest transportRequest, WebSocketHandler handler, URI url, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFuture<WebSocketSession> connectFuture) protected voidRestTemplateXhrTransport.connectInternal(TransportRequest transportRequest, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFuture<WebSocketSession> connectFuture) Constructor parameters in org.springframework.web.socket.sockjs.client with type arguments of type WebSocketSessionModifierConstructorDescriptionprotectedAbstractClientSockJsSession(TransportRequest request, WebSocketHandler handler, CompletableFuture<WebSocketSession> connectFuture) WebSocketClientSockJsSession(TransportRequest request, WebSocketHandler handler, CompletableFuture<WebSocketSession> connectFuture) XhrClientSockJsSession(TransportRequest request, WebSocketHandler handler, XhrTransport transport, CompletableFuture<WebSocketSession> connectFuture) Create a newXhrClientSockJsSession. -
Uses of WebSocketSession in org.springframework.web.socket.sockjs.transport
Subinterfaces of WebSocketSession in org.springframework.web.socket.sockjs.transportModifier and TypeInterfaceDescriptioninterfaceSockJS extension of Spring's standardWebSocketSession. -
Uses of WebSocketSession in org.springframework.web.socket.sockjs.transport.handler
Methods in org.springframework.web.socket.sockjs.transport.handler with parameters of type WebSocketSessionModifier and TypeMethodDescriptionvoidSockJsWebSocketHandler.afterConnectionClosed(WebSocketSession wsSession, CloseStatus status) voidSockJsWebSocketHandler.afterConnectionEstablished(WebSocketSession wsSession) voidSockJsWebSocketHandler.handleTextMessage(WebSocketSession wsSession, TextMessage message) voidSockJsWebSocketHandler.handleTransportError(WebSocketSession webSocketSession, Throwable exception) -
Uses of WebSocketSession in org.springframework.web.socket.sockjs.transport.session
Classes in org.springframework.web.socket.sockjs.transport.session that implement WebSocketSessionModifier and TypeClassDescriptionclassAn abstract base class for use with HTTP transport SockJS sessions.classAn abstract base class for SockJS sessions implementingSockJsSession.classA SockJS session for use with polling HTTP transports.classA SockJS session for use with streaming HTTP transports.classA SockJS session for use with the WebSocket transport.Methods in org.springframework.web.socket.sockjs.transport.session with parameters of type WebSocketSessionModifier and TypeMethodDescriptionvoidWebSocketServerSockJsSession.handleMessage(TextMessage message, WebSocketSession wsSession) voidWebSocketServerSockJsSession.initializeDelegateSession(WebSocketSession session)