public abstract class WebSocketMessageBrokerConfigurationSupport extends AbstractMessageBrokerConfiguration
AbstractMessageBrokerConfiguration and adds configuration for
receiving and responding to STOMP messages from WebSocket clients.
Typically used in conjunction with
@EnableWebSocketMessageBroker but can
also be extended directly.
| Constructor and Description |
|---|
WebSocketMessageBrokerConfigurationSupport() |
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, userRegistryMessageHandlerpublic WebSocketMessageBrokerConfigurationSupport()
protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpMessagingTemplate brokerMessagingTemplate)
AbstractMessageBrokerConfigurationSimpAnnotationMethodMessageHandler.createAnnotationMethodMessageHandler in class AbstractMessageBrokerConfigurationprotected SimpUserRegistry createLocalUserRegistry(@Nullable Integer order)
AbstractMessageBrokerConfigurationcreateLocalUserRegistry in class AbstractMessageBrokerConfigurationorder - the order to use as a SmartApplicationListener.@Bean public HandlerMapping stompWebSocketHandlerMapping(WebSocketHandler subProtocolWebSocketHandler, TaskScheduler messageBrokerTaskScheduler)
@Bean public WebSocketHandler subProtocolWebSocketHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
protected WebSocketHandler decorateWebSocketHandler(WebSocketHandler handler)
protected final WebSocketTransportRegistration getTransportRegistration()
protected void configureWebSocketTransport(WebSocketTransportRegistration registry)
protected abstract void registerStompEndpoints(StompEndpointRegistry registry)
@Bean public static CustomScopeConfigurer webSocketScopeConfigurer()
@Bean public WebSocketMessageBrokerStats webSocketMessageBrokerStats(@Nullable AbstractBrokerMessageHandler stompBrokerRelayMessageHandler, WebSocketHandler subProtocolWebSocketHandler, TaskExecutor clientInboundChannelExecutor, TaskExecutor clientOutboundChannelExecutor, TaskScheduler messageBrokerTaskScheduler)
protected MappingJackson2MessageConverter createJacksonConverter()
createJacksonConverter in class AbstractMessageBrokerConfiguration