@Configuration public class DelegatingWebSocketMessageBrokerConfiguration extends WebSocketMessageBrokerConfigurationSupport
WebSocketMessageBrokerConfigurationSupport
extension that detects
beans of type WebSocketMessageBrokerConfigurer
and delegates to all
of them allowing callback style customization of the configuration provided
in WebSocketMessageBrokerConfigurationSupport
.
This class is typically imported via EnableWebSocketMessageBroker
.
Constructor and Description |
---|
DelegatingWebSocketMessageBrokerConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) |
protected void |
addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) |
protected void |
configureClientInboundChannel(ChannelRegistration registration)
A hook for subclasses to customize the message channel for inbound messages
from WebSocket clients.
|
protected void |
configureClientOutboundChannel(ChannelRegistration registration)
A hook for subclasses to customize the message channel for messages from
the application or message broker to WebSocket clients.
|
protected void |
configureMessageBroker(MessageBrokerRegistry registry)
A hook for subclasses to customize message broker configuration through the
provided
MessageBrokerRegistry instance. |
protected boolean |
configureMessageConverters(List<MessageConverter> messageConverters)
Override this method to add custom message converters.
|
protected void |
configureWebSocketTransport(WebSocketTransportRegistration registration) |
protected void |
registerStompEndpoints(StompEndpointRegistry registry) |
void |
setConfigurers(List<WebSocketMessageBrokerConfigurer> configurers) |
createAnnotationMethodMessageHandler, createJacksonConverter, createLocalUserRegistry, decorateWebSocketHandler, getTransportRegistration, stompWebSocketHandlerMapping, subProtocolWebSocketHandler, webSocketMessageBrokerStats, webSocketScopeConfigurer
brokerChannel, brokerChannelExecutor, brokerMessageConverter, brokerMessagingTemplate, clientInboundChannel, clientInboundChannelExecutor, clientOutboundChannel, clientOutboundChannelExecutor, getApplicationContext, getBrokerRegistry, getClientInboundChannelRegistration, getClientOutboundChannelRegistration, getPathMatcher, getValidator, messageBrokerTaskScheduler, setApplicationContext, simpAnnotationMethodMessageHandler, simpleBrokerMessageHandler, simpValidator, stompBrokerRelayMessageHandler, userDestinationMessageHandler, userDestinationResolver, userRegistry, userRegistryMessageHandler, userSessionRegistry
public DelegatingWebSocketMessageBrokerConfiguration()
@Autowired(required=false) public void setConfigurers(List<WebSocketMessageBrokerConfigurer> configurers)
protected void registerStompEndpoints(StompEndpointRegistry registry)
registerStompEndpoints
in class WebSocketMessageBrokerConfigurationSupport
protected void configureWebSocketTransport(WebSocketTransportRegistration registration)
configureWebSocketTransport
in class WebSocketMessageBrokerConfigurationSupport
protected void configureClientInboundChannel(ChannelRegistration registration)
AbstractMessageBrokerConfiguration
configureClientInboundChannel
in class AbstractMessageBrokerConfiguration
protected void configureClientOutboundChannel(ChannelRegistration registration)
AbstractMessageBrokerConfiguration
configureClientOutboundChannel
in class AbstractMessageBrokerConfiguration
protected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers
in class AbstractMessageBrokerConfiguration
protected void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
addReturnValueHandlers
in class AbstractMessageBrokerConfiguration
protected boolean configureMessageConverters(List<MessageConverter> messageConverters)
AbstractMessageBrokerConfiguration
configureMessageConverters
in class AbstractMessageBrokerConfiguration
messageConverters
- the list to add converters to, initially emptytrue
if default message converters should be added to list,
false
if no more converters should be added.protected void configureMessageBroker(MessageBrokerRegistry registry)
AbstractMessageBrokerConfiguration
MessageBrokerRegistry
instance.configureMessageBroker
in class AbstractMessageBrokerConfiguration