类 DelegatingWebSocketMessageBrokerConfiguration
- java.lang.Object
- org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
- org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport
- org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration
- 所有已实现的接口:
Aware
,ApplicationContextAware
@Configuration public class DelegatingWebSocketMessageBrokerConfiguration extends WebSocketMessageBrokerConfigurationSupport
AWebSocketMessageBrokerConfigurationSupport
extension that detects beans of typeWebSocketMessageBrokerConfigurer
and delegates to all of them allowing callback style customization of the configuration provided inWebSocketMessageBrokerConfigurationSupport
.This class is typically imported via
EnableWebSocketMessageBroker
.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 providedMessageBrokerRegistry
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)
从类继承的方法 org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport
createAnnotationMethodMessageHandler, createJacksonConverter, createLocalUserRegistry, decorateWebSocketHandler, getTransportRegistration, stompWebSocketHandlerMapping, subProtocolWebSocketHandler, webSocketMessageBrokerStats, webSocketScopeConfigurer
从类继承的方法 org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration
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
构造器详细资料
DelegatingWebSocketMessageBrokerConfiguration
public DelegatingWebSocketMessageBrokerConfiguration()
方法详细资料
setConfigurers
@Autowired(required=false) public void setConfigurers(List<WebSocketMessageBrokerConfigurer> configurers)
registerStompEndpoints
protected void registerStompEndpoints(StompEndpointRegistry registry)
configureWebSocketTransport
protected void configureWebSocketTransport(WebSocketTransportRegistration registration)
configureClientInboundChannel
protected void configureClientInboundChannel(ChannelRegistration registration)
从类复制的说明:AbstractMessageBrokerConfiguration
A hook for subclasses to customize the message channel for inbound messages from WebSocket clients.
configureClientOutboundChannel
protected void configureClientOutboundChannel(ChannelRegistration registration)
从类复制的说明:AbstractMessageBrokerConfiguration
A hook for subclasses to customize the message channel for messages from the application or message broker to WebSocket clients.
addArgumentResolvers
protected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
addReturnValueHandlers
protected void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
configureMessageConverters
protected boolean configureMessageConverters(List<MessageConverter> messageConverters)
从类复制的说明:AbstractMessageBrokerConfiguration
Override this method to add custom message converters.- 覆盖:
configureMessageConverters
在类中AbstractMessageBrokerConfiguration
- 参数:
messageConverters
- the list to add converters to, initially empty- 返回:
true
if default message converters should be added to list,false
if no more converters should be added
configureMessageBroker
protected void configureMessageBroker(MessageBrokerRegistry registry)
从类复制的说明:AbstractMessageBrokerConfiguration
A hook for subclasses to customize message broker configuration through the providedMessageBrokerRegistry
instance.