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:
org.springframework.beans.factory.Aware,org.springframework.context.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
-
Field Summary
Fields inherited from class org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport
SCOPE_WEBSOCKET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers) protected voidaddReturnValueHandlers(List<org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandler> returnValueHandlers) protected voidconfigureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration) protected voidconfigureClientOutboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration) protected voidconfigureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry) protected booleanconfigureMessageConverters(List<org.springframework.messaging.converter.MessageConverter> messageConverters) protected voidconfigureWebSocketTransport(WebSocketTransportRegistration registration) protected intprotected voidregisterStompEndpoints(StompEndpointRegistry registry) voidsetConfigurers(List<WebSocketMessageBrokerConfigurer> configurers) Methods inherited from class org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport
createAnnotationMethodMessageHandler, createLocalUserRegistry, decorateWebSocketHandler, getTransportRegistration, stompWebSocketHandlerMapping, subProtocolWebSocketHandler, webSocketMessageBrokerStats, webSocketScopeConfigurerMethods inherited from class org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
brokerChannel, 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
-
DelegatingWebSocketMessageBrokerConfiguration
public DelegatingWebSocketMessageBrokerConfiguration()
-
-
Method Details
-
setConfigurers
@Autowired(required=false) public void setConfigurers(List<WebSocketMessageBrokerConfigurer> configurers) -
registerStompEndpoints
- Specified by:
registerStompEndpointsin classWebSocketMessageBrokerConfigurationSupport
-
configureWebSocketTransport
- Overrides:
configureWebSocketTransportin classWebSocketMessageBrokerConfigurationSupport
-
configureClientInboundChannel
protected void configureClientInboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration) - Overrides:
configureClientInboundChannelin classorg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
-
configureClientOutboundChannel
protected void configureClientOutboundChannel(org.springframework.messaging.simp.config.ChannelRegistration registration) - Overrides:
configureClientOutboundChannelin classorg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
-
addArgumentResolvers
protected void addArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers) - Overrides:
addArgumentResolversin classorg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
-
addReturnValueHandlers
protected void addReturnValueHandlers(List<org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandler> returnValueHandlers) - Overrides:
addReturnValueHandlersin classorg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
-
configureMessageConverters
protected boolean configureMessageConverters(List<org.springframework.messaging.converter.MessageConverter> messageConverters) - Overrides:
configureMessageConvertersin classorg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
-
configureMessageBroker
protected void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry) - Overrides:
configureMessageBrokerin classorg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
-
initPhase
protected int initPhase()- Overrides:
initPhasein classorg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
-