@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, webSocketScopeConfigurerbrokerChannel, brokerChannelExecutor, brokerMessageConverter, brokerMessagingTemplate, clientInboundChannel, clientInboundChannelExecutor, clientOutboundChannel, clientOutboundChannelExecutor, getApplicationContext, getBrokerRegistry, getClientInboundChannelRegistration, getClientOutboundChannelRegistration, getPathMatcher, getValidator, messageBrokerTaskScheduler, setApplicationContext, simpAnnotationMethodMessageHandler, simpleBrokerMessageHandler, simpValidator, stompBrokerRelayMessageHandler, userDestinationMessageHandler, userDestinationResolver, userRegistry, userRegistryMessageHandler, userSessionRegistrypublic DelegatingWebSocketMessageBrokerConfiguration()
@Autowired(required=false) public void setConfigurers(List<WebSocketMessageBrokerConfigurer> configurers)
protected void registerStompEndpoints(StompEndpointRegistry registry)
registerStompEndpoints in class WebSocketMessageBrokerConfigurationSupportprotected void configureWebSocketTransport(WebSocketTransportRegistration registration)
configureWebSocketTransport in class WebSocketMessageBrokerConfigurationSupportprotected void configureClientInboundChannel(ChannelRegistration registration)
AbstractMessageBrokerConfigurationconfigureClientInboundChannel in class AbstractMessageBrokerConfigurationprotected void configureClientOutboundChannel(ChannelRegistration registration)
AbstractMessageBrokerConfigurationconfigureClientOutboundChannel in class AbstractMessageBrokerConfigurationprotected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers in class AbstractMessageBrokerConfigurationprotected void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
addReturnValueHandlers in class AbstractMessageBrokerConfigurationprotected boolean configureMessageConverters(List<MessageConverter> messageConverters)
AbstractMessageBrokerConfigurationconfigureMessageConverters in class AbstractMessageBrokerConfigurationmessageConverters - the list to add converters to, initially emptytrue if default message converters should be added to list,
false if no more converters should be addedprotected void configureMessageBroker(MessageBrokerRegistry registry)
AbstractMessageBrokerConfigurationMessageBrokerRegistry instance.configureMessageBroker in class AbstractMessageBrokerConfiguration