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, userRegistryMessageHandler
public WebSocketMessageBrokerConfigurationSupport()
protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler()
AbstractMessageBrokerConfiguration
SimpAnnotationMethodMessageHandler
.createAnnotationMethodMessageHandler
in class AbstractMessageBrokerConfiguration
protected SimpUserRegistry createLocalUserRegistry(@Nullable Integer order)
AbstractMessageBrokerConfiguration
createLocalUserRegistry
in class AbstractMessageBrokerConfiguration
order
- the order to use as a SmartApplicationListener
.@Bean public HandlerMapping stompWebSocketHandlerMapping()
@Bean public WebSocketHandler subProtocolWebSocketHandler()
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()
protected MappingJackson2MessageConverter createJacksonConverter()
createJacksonConverter
in class AbstractMessageBrokerConfiguration