Uses of Interface
org.springframework.web.socket.WebSocketHandler
Packages that use WebSocketHandler Package Description org.springframework.web.socket.adapter.jetty Adapter classes for the Jetty WebSocket API.org.springframework.web.socket.adapter.standard Adapter classes for the standard Java WebSocket API.org.springframework.web.socket.client Client-side abstractions for WebSocket applications.org.springframework.web.socket.client.jetty Client-side support for the Jetty WebSocket API.org.springframework.web.socket.client.standard Client-side classes for use with standard Java WebSocket endpoints.org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.web.socket.handler ConvenientWebSocketHandlerimplementations and decorators.org.springframework.web.socket.messaging WebSocket integration for Spring's messaging module.org.springframework.web.socket.server Server-side abstractions for WebSocket interactions.org.springframework.web.socket.server.jetty Server-side support for the Jetty 9+ WebSocket API.org.springframework.web.socket.server.standard Server-side classes for use with standard JSR-356 WebSocket endpoints.org.springframework.web.socket.server.support Server-side support classes including container-specific strategies for upgrading a request.org.springframework.web.socket.sockjs Top-level SockJS types.org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient.org.springframework.web.socket.sockjs.support Support classes for SockJS including anAbstractSockJsServiceimplementation.org.springframework.web.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandlerimplementations for processing incoming requests, theirsessioncounterparts for sending messages over the various transports, andDefaultSockJsService.org.springframework.web.socket.sockjs.transport.handler TransportHandlerimplementation classes as well as a concreteSockJsService.org.springframework.web.socket.sockjs.transport.session SockJS specific implementations ofWebSocketSession.Uses of WebSocketHandler in org.springframework.web.socket.adapter.jetty
Constructors in org.springframework.web.socket.adapter.jetty with parameters of type WebSocketHandler Constructor Description JettyWebSocketHandlerAdapter(WebSocketHandler webSocketHandler, JettyWebSocketSession wsSession)Uses of WebSocketHandler in org.springframework.web.socket.adapter.standard
Constructors in org.springframework.web.socket.adapter.standard with parameters of type WebSocketHandler Constructor Description StandardWebSocketHandlerAdapter(WebSocketHandler handler, StandardWebSocketSession wsSession)Uses of WebSocketHandler in org.springframework.web.socket.client
Methods in org.springframework.web.socket.client that return WebSocketHandler Modifier and Type Method Description protected WebSocketHandlerWebSocketConnectionManager. decorateWebSocketHandler(WebSocketHandler handler)Decorate the WebSocketHandler provided to the class constructor.Methods in org.springframework.web.socket.client with parameters of type WebSocketHandler Modifier and Type Method Description protected WebSocketHandlerWebSocketConnectionManager. decorateWebSocketHandler(WebSocketHandler handler)Decorate the WebSocketHandler provided to the class constructor.ListenableFuture<WebSocketSession>AbstractWebSocketClient. doHandshake(WebSocketHandler webSocketHandler, String uriTemplate, Object... uriVars)ListenableFuture<WebSocketSession>AbstractWebSocketClient. doHandshake(WebSocketHandler webSocketHandler, WebSocketHttpHeaders headers, URI uri)ListenableFuture<WebSocketSession>WebSocketClient. doHandshake(WebSocketHandler webSocketHandler, String uriTemplate, Object... uriVariables)ListenableFuture<WebSocketSession>WebSocketClient. doHandshake(WebSocketHandler webSocketHandler, WebSocketHttpHeaders headers, URI uri)protected abstract ListenableFuture<WebSocketSession>AbstractWebSocketClient. doHandshakeInternal(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.Constructors in org.springframework.web.socket.client with parameters of type WebSocketHandler Constructor Description WebSocketConnectionManager(WebSocketClient client, WebSocketHandler webSocketHandler, String uriTemplate, Object... uriVariables)Uses of WebSocketHandler in org.springframework.web.socket.client.jetty
Methods in org.springframework.web.socket.client.jetty with parameters of type WebSocketHandler Modifier and Type Method Description ListenableFuture<WebSocketSession>JettyWebSocketClient. doHandshake(WebSocketHandler webSocketHandler, String uriTemplate, Object... uriVars)ListenableFuture<WebSocketSession>JettyWebSocketClient. doHandshakeInternal(WebSocketHandler wsHandler, HttpHeaders headers, URI uri, List<String> protocols, List<WebSocketExtension> extensions, Map<String,Object> attributes)Uses of WebSocketHandler in org.springframework.web.socket.client.standard
Methods in org.springframework.web.socket.client.standard with parameters of type WebSocketHandler Modifier and Type Method Description protected ListenableFuture<WebSocketSession>StandardWebSocketClient. doHandshakeInternal(WebSocketHandler webSocketHandler, HttpHeaders headers, URI uri, List<String> protocols, List<WebSocketExtension> extensions, Map<String,Object> attributes)Uses of WebSocketHandler in org.springframework.web.socket.config.annotation
Methods in org.springframework.web.socket.config.annotation that return WebSocketHandler Modifier and Type Method Description protected WebSocketHandlerWebSocketMessageBrokerConfigurationSupport. decorateWebSocketHandler(WebSocketHandler handler)WebSocketHandlerWebSocketMessageBrokerConfigurationSupport. subProtocolWebSocketHandler()Methods in org.springframework.web.socket.config.annotation with parameters of type WebSocketHandler Modifier and Type Method Description WebSocketHandlerRegistrationAbstractWebSocketHandlerRegistration. addHandler(WebSocketHandler handler, String... paths)WebSocketHandlerRegistrationServletWebSocketHandlerRegistry. addHandler(WebSocketHandler handler, String... paths)WebSocketHandlerRegistrationWebSocketHandlerRegistration. addHandler(WebSocketHandler handler, String... paths)Add more handlers that will share the same configuration (interceptors, SockJS config, etc).WebSocketHandlerRegistrationWebSocketHandlerRegistry. addHandler(WebSocketHandler webSocketHandler, String... paths)Configure a WebSocketHandler at the specified URL paths.protected abstract voidAbstractWebSocketHandlerRegistration. addSockJsServiceMapping(M mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern)protected voidServletWebSocketHandlerRegistration. addSockJsServiceMapping(MultiValueMap<HttpRequestHandler,String> mappings, SockJsService sockJsService, WebSocketHandler handler, String pathPattern)protected abstract voidAbstractWebSocketHandlerRegistration. addWebSocketHandlerMapping(M mappings, WebSocketHandler wsHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path)protected voidServletWebSocketHandlerRegistration. addWebSocketHandlerMapping(MultiValueMap<HttpRequestHandler,String> mappings, WebSocketHandler webSocketHandler, HandshakeHandler handshakeHandler, HandshakeInterceptor[] interceptors, String path)protected WebSocketHandlerWebSocketMessageBrokerConfigurationSupport. decorateWebSocketHandler(WebSocketHandler handler)Constructors in org.springframework.web.socket.config.annotation with parameters of type WebSocketHandler Constructor Description WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, WebSocketTransportRegistration transportRegistration, TaskScheduler defaultSockJsTaskScheduler)WebMvcStompWebSocketEndpointRegistration(String[] paths, WebSocketHandler webSocketHandler, TaskScheduler sockJsTaskScheduler)Uses of WebSocketHandler in org.springframework.web.socket.handler
Classes in org.springframework.web.socket.handler that implement WebSocketHandler Modifier and Type Class Description classAbstractWebSocketHandlerA convenient base class forWebSocketHandlerimplementation with empty methods.classBinaryWebSocketHandlerA convenient base class forWebSocketHandlerimplementations that process binary messages only.classExceptionWebSocketHandlerDecoratorAn exception handlingWebSocketHandlerDecorator.classLoggingWebSocketHandlerDecoratorAWebSocketHandlerDecoratorthat adds logging to WebSocket lifecycle events.classPerConnectionWebSocketHandlerAWebSocketHandlerthat initializes and destroys aWebSocketHandlerinstance for each WebSocket connection and delegates all other methods to it.classTextWebSocketHandlerA convenient base class forWebSocketHandlerimplementations that process text messages only.classWebSocketHandlerDecoratorWraps anotherWebSocketHandlerinstance and delegates to it.Methods in org.springframework.web.socket.handler that return WebSocketHandler Modifier and Type Method Description WebSocketHandlerWebSocketHandlerDecoratorFactory. decorate(WebSocketHandler handler)Decorate the given WebSocketHandler.WebSocketHandlerWebSocketHandlerDecorator. getDelegate()WebSocketHandlerWebSocketHandlerDecorator. getLastHandler()static WebSocketHandlerWebSocketHandlerDecorator. unwrap(WebSocketHandler handler)Methods in org.springframework.web.socket.handler with parameters of type WebSocketHandler Modifier and Type Method Description WebSocketHandlerWebSocketHandlerDecoratorFactory. decorate(WebSocketHandler handler)Decorate the given WebSocketHandler.static WebSocketHandlerWebSocketHandlerDecorator. unwrap(WebSocketHandler handler)Constructors in org.springframework.web.socket.handler with parameters of type WebSocketHandler Constructor Description ExceptionWebSocketHandlerDecorator(WebSocketHandler delegate)LoggingWebSocketHandlerDecorator(WebSocketHandler delegate)WebSocketHandlerDecorator(WebSocketHandler delegate)Constructor parameters in org.springframework.web.socket.handler with type arguments of type WebSocketHandler Constructor Description PerConnectionWebSocketHandler(Class<? extends WebSocketHandler> handlerType)PerConnectionWebSocketHandler(Class<? extends WebSocketHandler> handlerType, boolean supportsPartialMessages)Uses of WebSocketHandler in org.springframework.web.socket.messaging
Classes in org.springframework.web.socket.messaging that implement WebSocketHandler Modifier and Type Class Description classSubProtocolWebSocketHandlerAn implementation ofWebSocketHandlerthat delegates incoming WebSocket messages to aSubProtocolHandleralong with aMessageChannelto which the sub-protocol handler can send messages from WebSocket clients to the application.Uses of WebSocketHandler in org.springframework.web.socket.server
Methods in org.springframework.web.socket.server with parameters of type WebSocketHandler Modifier and Type Method Description voidHandshakeInterceptor. afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception exception)Invoked after the handshake is done.booleanHandshakeInterceptor. beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String,Object> attributes)Invoked before the handshake is processed.booleanHandshakeHandler. doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String,Object> attributes)Initiate the handshake.voidRequestUpgradeStrategy. upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler wsHandler, Map<String,Object> attributes)Perform runtime specific steps to complete the upgrade.Uses of WebSocketHandler in org.springframework.web.socket.server.jetty
Methods in org.springframework.web.socket.server.jetty with parameters of type WebSocketHandler Modifier and Type Method Description voidJettyRequestUpgradeStrategy. upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler wsHandler, Map<String,Object> attributes)Uses of WebSocketHandler in org.springframework.web.socket.server.standard
Methods in org.springframework.web.socket.server.standard with parameters of type WebSocketHandler Modifier and Type Method Description voidAbstractStandardUpgradeStrategy. upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler wsHandler, Map<String,Object> attrs)Uses of WebSocketHandler in org.springframework.web.socket.server.support
Methods in org.springframework.web.socket.server.support that return WebSocketHandler Modifier and Type Method Description protected WebSocketHandlerWebSocketHttpRequestHandler. decorate(WebSocketHandler handler)Decorate theWebSocketHandlerpassed into the constructor.WebSocketHandlerWebSocketHttpRequestHandler. getWebSocketHandler()Return the WebSocketHandler.Methods in org.springframework.web.socket.server.support with parameters of type WebSocketHandler Modifier and Type Method Description voidHttpSessionHandshakeInterceptor. afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception ex)voidOriginHandshakeInterceptor. afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception exception)booleanHttpSessionHandshakeInterceptor. beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String,Object> attributes)booleanOriginHandshakeInterceptor. beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String,Object> attributes)protected WebSocketHandlerWebSocketHttpRequestHandler. decorate(WebSocketHandler handler)Decorate theWebSocketHandlerpassed into the constructor.protected List<String>AbstractHandshakeHandler. determineHandlerSupportedProtocols(WebSocketHandler handler)Determine the sub-protocols supported by the given WebSocketHandler by checking whether it is an instance ofSubProtocolCapable.protected PrincipalAbstractHandshakeHandler. determineUser(ServerHttpRequest request, WebSocketHandler wsHandler, Map<String,Object> attributes)A method that can be used to associate a user with the WebSocket session in the process of being established.booleanAbstractHandshakeHandler. doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String,Object> attributes)protected StringAbstractHandshakeHandler. selectProtocol(List<String> requestedProtocols, WebSocketHandler webSocketHandler)Perform the sub-protocol negotiation based on requested and supported sub-protocols.Constructors in org.springframework.web.socket.server.support with parameters of type WebSocketHandler Constructor Description HandshakeInterceptorChain(List<HandshakeInterceptor> interceptors, WebSocketHandler wsHandler)WebSocketHttpRequestHandler(WebSocketHandler wsHandler)WebSocketHttpRequestHandler(WebSocketHandler wsHandler, HandshakeHandler handshakeHandler)Uses of WebSocketHandler in org.springframework.web.socket.sockjs
Methods in org.springframework.web.socket.sockjs with parameters of type WebSocketHandler Modifier and Type Method Description voidSockJsService. handleRequest(ServerHttpRequest request, ServerHttpResponse response, String sockJsPath, WebSocketHandler handler)Process a SockJS HTTP request.Uses of WebSocketHandler in org.springframework.web.socket.sockjs.client
Methods in org.springframework.web.socket.sockjs.client that return WebSocketHandler Modifier and Type Method Description WebSocketHandlerAbstractClientSockJsSession. getWebSocketHandler()Constructors in org.springframework.web.socket.sockjs.client with parameters of type WebSocketHandler Constructor Description AbstractClientSockJsSession(TransportRequest request, WebSocketHandler handler, SettableListenableFuture<WebSocketSession> connectFuture)WebSocketClientSockJsSession(TransportRequest request, WebSocketHandler handler, SettableListenableFuture<WebSocketSession> connectFuture)XhrClientSockJsSession(TransportRequest request, WebSocketHandler handler, XhrTransport transport, SettableListenableFuture<WebSocketSession> connectFuture)Uses of WebSocketHandler in org.springframework.web.socket.sockjs.support
Methods in org.springframework.web.socket.sockjs.support that return WebSocketHandler Modifier and Type Method Description WebSocketHandlerSockJsHttpRequestHandler. getWebSocketHandler()Return theWebSocketHandler.Methods in org.springframework.web.socket.sockjs.support with parameters of type WebSocketHandler Modifier and Type Method Description protected abstract voidAbstractSockJsService. handleRawWebSocketRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler)Handle request for raw WebSocket communication, i.e.voidAbstractSockJsService. handleRequest(ServerHttpRequest request, ServerHttpResponse response, String sockJsPath, WebSocketHandler wsHandler)This method determines the SockJS path and handles SockJS static URLs.protected abstract voidAbstractSockJsService. handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler, String sessionId, String transport)Handle a SockJS session URL (i.e.Constructors in org.springframework.web.socket.sockjs.support with parameters of type WebSocketHandler Constructor Description SockJsHttpRequestHandler(SockJsService sockJsService, WebSocketHandler webSocketHandler)Create a new SockJsHttpRequestHandler.Uses of WebSocketHandler in org.springframework.web.socket.sockjs.transport
Methods in org.springframework.web.socket.sockjs.transport with parameters of type WebSocketHandler Modifier and Type Method Description SockJsSessionSockJsSessionFactory. createSession(String sessionId, WebSocketHandler handler, Map<String,Object> attributes)Create a new SockJS session.protected voidTransportHandlingSockJsService. handleRawWebSocketRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler)voidTransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, SockJsSession session)Handle the given request and delegate messages to the providedWebSocketHandler.protected voidTransportHandlingSockJsService. handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, String sessionId, String transport)Uses of WebSocketHandler in org.springframework.web.socket.sockjs.transport.handler
Classes in org.springframework.web.socket.sockjs.transport.handler that implement WebSocketHandler Modifier and Type Class Description classSockJsWebSocketHandlerAn implementation ofWebSocketHandlerthat adds SockJS messages frames, sends SockJS heartbeat messages, and delegates lifecycle events and messages to a targetWebSocketHandler.Methods in org.springframework.web.socket.sockjs.transport.handler with parameters of type WebSocketHandler Modifier and Type Method Description StreamingSockJsSessionEventSourceTransportHandler. createSession(String sessionId, WebSocketHandler handler, Map<String,Object> attributes)StreamingSockJsSessionHtmlFileTransportHandler. createSession(String sessionId, WebSocketHandler handler, Map<String,Object> attributes)AbstractSockJsSessionWebSocketTransportHandler. createSession(String id, WebSocketHandler handler, Map<String,Object> attrs)PollingSockJsSessionXhrPollingTransportHandler. createSession(String sessionId, WebSocketHandler handler, Map<String,Object> attributes)StreamingSockJsSessionXhrStreamingTransportHandler. createSession(String sessionId, WebSocketHandler handler, Map<String,Object> attributes)booleanWebSocketTransportHandler. doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, Map<String,Object> attributes)voidAbstractHttpReceivingTransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession)voidAbstractHttpSendingTransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession)voidWebSocketTransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession)protected voidAbstractHttpReceivingTransportHandler. handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, AbstractHttpSockJsSession sockJsSession)Constructors in org.springframework.web.socket.sockjs.transport.handler with parameters of type WebSocketHandler Constructor Description SockJsWebSocketHandler(SockJsServiceConfig serviceConfig, WebSocketHandler webSocketHandler, WebSocketServerSockJsSession sockJsSession)Uses of WebSocketHandler in org.springframework.web.socket.sockjs.transport.session
Constructors in org.springframework.web.socket.sockjs.transport.session with parameters of type WebSocketHandler Constructor Description AbstractHttpSockJsSession(String id, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String,Object> attributes)AbstractSockJsSession(String id, SockJsServiceConfig config, WebSocketHandler handler, Map<String,Object> attributes)Create a new instance.PollingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String,Object> attributes)StreamingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String,Object> attributes)WebSocketServerSockJsSession(String id, SockJsServiceConfig config, WebSocketHandler handler, Map<String,Object> attributes)