程序包 org.springframework.web.socket.config.annotation
Support for annotation-based WebSocket setup in configuration classes.
接口概要 接口 说明 StompEndpointRegistry A contract for registering STOMP over WebSocket endpoints.StompWebSocketEndpointRegistration A contract for configuring a STOMP over WebSocket endpoint.WebSocketConfigurer Defines callback methods to configure the WebSocket request handling via@EnableWebSocket.WebSocketHandlerRegistration Provides methods for configuring a WebSocket handler.WebSocketHandlerRegistry Provides methods for configuringWebSocketHandlerrequest mappings.WebSocketMessageBrokerConfigurer Defines methods for configuring message handling with simple messaging protocols (e.g.类概要 类 说明 AbstractWebSocketHandlerRegistration<M> Base class forWebSocketHandlerRegistrationsthat gathers all the configuration options but allows sub-classes to put together the actual HTTP request mappings.AbstractWebSocketMessageBrokerConfigurer 已过时。 as of 5.0 in favor of simply usingWebSocketMessageBrokerConfigurerwhich has default methods, made possible by a Java 8 baseline.DelegatingWebSocketConfiguration A variation ofWebSocketConfigurationSupportthat detects implementations ofWebSocketConfigurerin Spring configuration and invokes them in order to configure WebSocket request handling.DelegatingWebSocketMessageBrokerConfiguration AWebSocketMessageBrokerConfigurationSupportextension that detects beans of typeWebSocketMessageBrokerConfigurerand delegates to all of them allowing callback style customization of the configuration provided inWebSocketMessageBrokerConfigurationSupport.ServletWebSocketHandlerRegistration A helper class for configuringWebSocketHandlerrequest handling including SockJS fallback options.ServletWebSocketHandlerRegistry WebSocketHandlerRegistrywith Spring MVC handler mappings for the handshake requests.SockJsServiceRegistration A helper class for configuring SockJS fallback options for use with anEnableWebSocketandWebSocketConfigurersetup.WebMvcStompEndpointRegistry A registry for STOMP over WebSocket endpoints that maps the endpoints with aHandlerMappingfor use in Spring MVC.WebMvcStompWebSocketEndpointRegistration An abstract base class for configuring STOMP over WebSocket/SockJS endpoints.WebSocketConfigurationSupport Configuration support for WebSocket request handling.WebSocketMessageBrokerConfigurationSupport ExtendsAbstractMessageBrokerConfigurationand adds configuration for receiving and responding to STOMP messages from WebSocket clients.WebSocketTransportRegistration Configure the processing of messages received from and sent to WebSocket clients.注释类型概要 注释类型 说明 EnableWebSocket Add this annotation to an@Configurationclass to configure processing WebSocket requests.EnableWebSocketMessageBroker Add this annotation to an@Configurationclass to enable broker-backed messaging over WebSocket using a higher-level messaging sub-protocol.