public abstract class WebSocketMessageBrokerConfigurationSupport extends AbstractMessageBrokerConfiguration
AbstractMessageBrokerConfiguration
を拡張し、WebSocket クライアントからの STOMP メッセージを受信および応答するための構成を追加します。 通常、@EnableWebSocketMessageBroker
と組み合わせて使用されますが、直接拡張することもできます。
コンストラクターと説明 |
---|
WebSocketMessageBrokerConfigurationSupport() |
addArgumentResolvers, addReturnValueHandlers, brokerChannel, brokerChannelExecutor, brokerMessageConverter, brokerMessagingTemplate, clientInboundChannel, clientInboundChannelExecutor, clientOutboundChannel, clientOutboundChannelExecutor, configureClientInboundChannel, configureClientOutboundChannel, configureMessageBroker, configureMessageConverters, createLocalUserRegistry, getApplicationContext, getBrokerRegistry, getClientInboundChannelRegistration, getClientOutboundChannelRegistration, getPathMatcher, getValidator, messageBrokerTaskScheduler, setApplicationContext, simpAnnotationMethodMessageHandler, simpleBrokerMessageHandler, simpValidator, stompBrokerRelayMessageHandler, userDestinationMessageHandler, userDestinationResolver, userRegistry, userRegistryMessageHandler
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public WebSocketMessageBrokerConfigurationSupport()
protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpMessagingTemplate brokerMessagingTemplate)
AbstractMessageBrokerConfiguration
SimpAnnotationMethodMessageHandler
のカスタムサブクラスにプラグインするための protected メソッド。protected SimpUserRegistry createLocalUserRegistry(@Nullable IntegerSE order)
AbstractMessageBrokerConfiguration
AbstractMessageBrokerConfiguration
の createLocalUserRegistry
order
- SmartApplicationListener
として使用する順序。@Bean public HandlerMapping stompWebSocketHandlerMapping(WebSocketHandler subProtocolWebSocketHandler, TaskScheduler messageBrokerTaskScheduler)
@Bean public WebSocketHandler subProtocolWebSocketHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
protected WebSocketHandler decorateWebSocketHandler(WebSocketHandler handler)
protected final WebSocketTransportRegistration getTransportRegistration()
protected void configureWebSocketTransport(WebSocketTransportRegistration registry)
protected abstract void registerStompEndpoints(StompEndpointRegistry registry)
@Bean public static CustomScopeConfigurer webSocketScopeConfigurer()
@Bean public WebSocketMessageBrokerStats webSocketMessageBrokerStats(@Nullable AbstractBrokerMessageHandler stompBrokerRelayMessageHandler, WebSocketHandler subProtocolWebSocketHandler, TaskExecutor clientInboundChannelExecutor, TaskExecutor clientOutboundChannelExecutor, TaskScheduler messageBrokerTaskScheduler)
protected MappingJackson2MessageConverter createJacksonConverter()
AbstractMessageBrokerConfiguration
の createJacksonConverter