Class DelegatingWebSocketMessageBrokerConfiguration
java.lang.Object
org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport
org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration
- All Implemented Interfaces:
- Aware,- ApplicationContextAware
@Configuration(proxyBeanMethods=false)
public class DelegatingWebSocketMessageBrokerConfiguration
extends WebSocketMessageBrokerConfigurationSupport
A 
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.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Sebastien Deleuze
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) protected voidaddReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) protected voidconfigureClientInboundChannel(ChannelRegistration registration) A hook for subclasses to customize the message channel for inbound messages from WebSocket clients.protected voidconfigureClientOutboundChannel(ChannelRegistration registration) A hook for subclasses to customize the message channel for messages from the application or message broker to WebSocket clients.protected voidconfigureMessageBroker(MessageBrokerRegistry registry) A hook for subclasses to customize message broker configuration through the providedMessageBrokerRegistryinstance.protected booleanconfigureMessageConverters(List<MessageConverter> messageConverters) Override this method to add custom message converters.protected voidconfigureWebSocketTransport(WebSocketTransportRegistration registration) protected intprotected voidregisterStompEndpoints(StompEndpointRegistry registry) voidsetConfigurers(List<WebSocketMessageBrokerConfigurer> configurers) Methods inherited from class org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupportcreateAnnotationMethodMessageHandler, createLocalUserRegistry, decorateWebSocketHandler, getTransportRegistration, stompWebSocketHandlerMapping, subProtocolWebSocketHandler, webSocketMessageBrokerStats, webSocketScopeConfigurerMethods inherited from class org.springframework.messaging.simp.config.AbstractMessageBrokerConfigurationbrokerChannel, brokerChannelExecutor, brokerMessageConverter, brokerMessagingTemplate, clientInboundChannel, clientInboundChannelExecutor, clientOutboundChannel, clientOutboundChannelExecutor, createJacksonConverter, createJacksonJsonConverter, getApplicationContext, getBrokerRegistry, getClientInboundChannelRegistration, getClientOutboundChannelRegistration, getPathMatcher, getPhase, getValidator, messageBrokerTaskScheduler, setApplicationContext, simpAnnotationMethodMessageHandler, simpleBrokerMessageHandler, simpValidator, stompBrokerRelayMessageHandler, userDestinationMessageHandler, userDestinationResolver, userRegistry, userRegistryMessageHandler
- 
Constructor Details- 
DelegatingWebSocketMessageBrokerConfigurationpublic DelegatingWebSocketMessageBrokerConfiguration()
 
- 
- 
Method Details- 
setConfigurers@Autowired(required=false) public void setConfigurers(List<WebSocketMessageBrokerConfigurer> configurers) 
- 
registerStompEndpoints- Specified by:
- registerStompEndpointsin class- WebSocketMessageBrokerConfigurationSupport
 
- 
configureWebSocketTransport- Overrides:
- configureWebSocketTransportin class- WebSocketMessageBrokerConfigurationSupport
 
- 
configureClientInboundChannelDescription copied from class:AbstractMessageBrokerConfigurationA hook for subclasses to customize the message channel for inbound messages from WebSocket clients.- Overrides:
- configureClientInboundChannelin class- AbstractMessageBrokerConfiguration
 
- 
configureClientOutboundChannelDescription copied from class:AbstractMessageBrokerConfigurationA hook for subclasses to customize the message channel for messages from the application or message broker to WebSocket clients.- Overrides:
- configureClientOutboundChannelin class- AbstractMessageBrokerConfiguration
 
- 
addArgumentResolvers- Overrides:
- addArgumentResolversin class- AbstractMessageBrokerConfiguration
 
- 
addReturnValueHandlers- Overrides:
- addReturnValueHandlersin class- AbstractMessageBrokerConfiguration
 
- 
configureMessageConvertersDescription copied from class:AbstractMessageBrokerConfigurationOverride this method to add custom message converters.- Overrides:
- configureMessageConvertersin class- AbstractMessageBrokerConfiguration
- Parameters:
- messageConverters- the list to add converters to, initially empty
- Returns:
- trueif default message converters should be added to list,- falseif no more converters should be added
 
- 
configureMessageBrokerDescription copied from class:AbstractMessageBrokerConfigurationA hook for subclasses to customize message broker configuration through the providedMessageBrokerRegistryinstance.- Overrides:
- configureMessageBrokerin class- AbstractMessageBrokerConfiguration
 
- 
initPhaseprotected int initPhase()- Overrides:
- initPhasein class- AbstractMessageBrokerConfiguration
 
 
-