Package org.springframework.web.socket.config.annotation
@NonNullApi
@NonNullFields
package org.springframework.web.socket.config.annotation
Support for annotation-based WebSocket setup in configuration classes.
-
ClassDescriptionBase class for
WebSocketHandlerRegistrationsthat gathers all the configuration options but allows subclasses to put together the actual HTTP request mappings.A variation ofWebSocketConfigurationSupportthat detects implementations ofWebSocketConfigurerin Spring configuration and invokes them in order to configure WebSocket request handling.AWebSocketMessageBrokerConfigurationSupportextension that detects beans of typeWebSocketMessageBrokerConfigurerand delegates to all of them allowing callback style customization of the configuration provided inWebSocketMessageBrokerConfigurationSupport.Add this annotation to an@Configurationclass to configure processing WebSocket requests.Add this annotation to an@Configurationclass to enable broker-backed messaging over WebSocket using a higher-level messaging sub-protocol.A helper class for configuringWebSocketHandlerrequest handling including SockJS fallback options.WebSocketHandlerRegistrywith Spring MVC handler mappings for the handshake requests.A helper class for configuring SockJS fallback options for use with anEnableWebSocketandWebSocketConfigurersetup.A contract for registering STOMP over WebSocket endpoints.A contract for configuring a STOMP over WebSocket endpoint.A registry for STOMP over WebSocket endpoints that maps the endpoints with aHandlerMappingfor use in Spring MVC.An abstract base class for configuring STOMP over WebSocket/SockJS endpoints.Configuration support for WebSocket request handling.Defines callback methods to configure the WebSocket request handling via@EnableWebSocket.Provides methods for configuring a WebSocket handler.Provides methods for configuringWebSocketHandlerrequest mappings.ExtendsAbstractMessageBrokerConfigurationand adds configuration for receiving and responding to STOMP messages from WebSocket clients.Defines methods for configuring message handling with simple messaging protocols (e.g.Configure the processing of messages received from and sent to WebSocket clients.