类 WebSocketMessageBrokerConfigurationSupport
- java.lang.Object
- org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
- org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport
- 所有已实现的接口:
Aware,ApplicationContextAware
public abstract class WebSocketMessageBrokerConfigurationSupport extends AbstractMessageBrokerConfiguration
ExtendsAbstractMessageBrokerConfigurationand adds configuration for receiving and responding to STOMP messages from WebSocket clients.Typically used in conjunction with
@EnableWebSocketMessageBrokerbut can also be extended directly.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Artem Bilan
构造器概要
构造器 构造器 说明 WebSocketMessageBrokerConfigurationSupport()
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected voidconfigureWebSocketTransport(WebSocketTransportRegistration registry)protected SimpAnnotationMethodMessageHandlercreateAnnotationMethodMessageHandler()Protected method for plugging in a custom subclass ofSimpAnnotationMethodMessageHandler.protected MappingJackson2MessageConvertercreateJacksonConverter()protected SimpUserRegistrycreateLocalUserRegistry(Integer order)Create the user registry that provides access to local users.protected WebSocketHandlerdecorateWebSocketHandler(WebSocketHandler handler)protected WebSocketTransportRegistrationgetTransportRegistration()protected abstract voidregisterStompEndpoints(StompEndpointRegistry registry)HandlerMappingstompWebSocketHandlerMapping()WebSocketHandlersubProtocolWebSocketHandler()WebSocketMessageBrokerStatswebSocketMessageBrokerStats()static CustomScopeConfigurerwebSocketScopeConfigurer()从类继承的方法 org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
addArgumentResolvers, addReturnValueHandlers, brokerChannel, brokerChannelExecutor, brokerMessageConverter, brokerMessagingTemplate, clientInboundChannel, clientInboundChannelExecutor, clientOutboundChannel, clientOutboundChannelExecutor, configureClientInboundChannel, configureClientOutboundChannel, configureMessageBroker, configureMessageConverters, createLocalUserRegistry, getApplicationContext, getBrokerRegistry, getClientInboundChannelRegistration, getClientOutboundChannelRegistration, getPathMatcher, getValidator, messageBrokerTaskScheduler, setApplicationContext, simpAnnotationMethodMessageHandler, simpleBrokerMessageHandler, simpValidator, stompBrokerRelayMessageHandler, userDestinationMessageHandler, userDestinationResolver, userRegistry, userRegistryMessageHandler
构造器详细资料
WebSocketMessageBrokerConfigurationSupport
public WebSocketMessageBrokerConfigurationSupport()
方法详细资料
createAnnotationMethodMessageHandler
protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler()
从类复制的说明:AbstractMessageBrokerConfigurationProtected method for plugging in a custom subclass ofSimpAnnotationMethodMessageHandler.
createLocalUserRegistry
protected SimpUserRegistry createLocalUserRegistry(@Nullable Integer order)
从类复制的说明:AbstractMessageBrokerConfigurationCreate the user registry that provides access to local users.- 指定者:
createLocalUserRegistry在类中AbstractMessageBrokerConfiguration- 参数:
order- the order to use as aSmartApplicationListener.
stompWebSocketHandlerMapping
@Bean public HandlerMapping stompWebSocketHandlerMapping()
subProtocolWebSocketHandler
@Bean public WebSocketHandler subProtocolWebSocketHandler()
decorateWebSocketHandler
protected WebSocketHandler decorateWebSocketHandler(WebSocketHandler handler)
getTransportRegistration
protected final WebSocketTransportRegistration getTransportRegistration()
configureWebSocketTransport
protected void configureWebSocketTransport(WebSocketTransportRegistration registry)
registerStompEndpoints
protected abstract void registerStompEndpoints(StompEndpointRegistry registry)
webSocketScopeConfigurer
@Bean public static CustomScopeConfigurer webSocketScopeConfigurer()
webSocketMessageBrokerStats
@Bean public WebSocketMessageBrokerStats webSocketMessageBrokerStats()
createJacksonConverter
protected MappingJackson2MessageConverter createJacksonConverter()