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() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureWebSocketTransport(WebSocketTransportRegistration registry) |
protected SimpAnnotationMethodMessageHandler |
createAnnotationMethodMessageHandler()
Protected method for plugging in a custom subclass of
SimpAnnotationMethodMessageHandler . |
protected MappingJackson2MessageConverter |
createJacksonConverter() |
protected SimpUserRegistry |
createLocalUserRegistry()
Create the user registry that provides access to the local users.
|
protected WebSocketHandler |
decorateWebSocketHandler(WebSocketHandler handler) |
protected WebSocketTransportRegistration |
getTransportRegistration() |
protected abstract void |
registerStompEndpoints(StompEndpointRegistry registry) |
HandlerMapping |
stompWebSocketHandlerMapping() |
WebSocketHandler |
subProtocolWebSocketHandler() |
WebSocketMessageBrokerStats |
webSocketMessageBrokerStats() |
static CustomScopeConfigurer |
webSocketScopeConfigurer() |
addArgumentResolvers, addReturnValueHandlers, brokerChannel, brokerChannelExecutor, brokerMessageConverter, brokerMessagingTemplate, clientInboundChannel, clientInboundChannelExecutor, clientOutboundChannel, clientOutboundChannelExecutor, configureClientInboundChannel, configureClientOutboundChannel, configureMessageBroker, configureMessageConverters, getApplicationContext, getBrokerRegistry, getClientInboundChannelRegistration, getClientOutboundChannelRegistration, getPathMatcher, getValidator, messageBrokerTaskScheduler, setApplicationContext, simpAnnotationMethodMessageHandler, simpleBrokerMessageHandler, simpValidator, stompBrokerRelayMessageHandler, userDestinationMessageHandler, userDestinationResolver, userRegistry, userRegistryMessageHandler, userSessionRegistry
public WebSocketMessageBrokerConfigurationSupport()
protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler()
AbstractMessageBrokerConfiguration
SimpAnnotationMethodMessageHandler
.createAnnotationMethodMessageHandler
in class AbstractMessageBrokerConfiguration
protected SimpUserRegistry createLocalUserRegistry()
AbstractMessageBrokerConfiguration
createLocalUserRegistry
in class AbstractMessageBrokerConfiguration
@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