clientInboundChannel and clientOutboundChannel deliver
messages to and from remote clients to several message handlers such as the
following.
simpAnnotationMethodMessageHandlersimpleBrokerMessageHandlerstompBrokerRelayMessageHandleruserDestinationMessageHandlerbrokerChannel delivers messages from within the application to the
respective message handlers. brokerMessagingTemplate can be injected
into any application component to send messages.
Subclasses are responsible for the parts of the configuration that feed messages to and from the client inbound/outbound channels (e.g. STOMP over WebSocket).
| Modifier and Type | Field and Description |
|---|---|
| private ApplicationContext | |
| private MessageBrokerRegistry | |
| private ChannelRegistration | |
| private ChannelRegistration | |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| private static final boolean | |
| private static final String | |
| private Integer |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public AbstractSubscribableChannel | brokerChannel(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, TaskExecutor executor)
|
| public TaskExecutor | brokerChannelExecutor(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
|
| public CompositeMessageConverter | |
| public SimpMessagingTemplate | brokerMessagingTemplate(AbstractSubscribableChannel brokerChannel, AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, CompositeMessageConverter brokerMessageConverter)
|
| public AbstractSubscribableChannel | |
| public TaskExecutor | |
| public AbstractSubscribableChannel | |
| public TaskExecutor | |
| 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 |
| protected boolean | Returns: true if default message converters should be added to list,
false if no more converters should be addedthe list to add converters to, initially empty messageConverters)Override this method to add custom message converters. |
| protected SimpAnnotationMethodMessageHandler | createAnnotationMethodMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpMessagingTemplate brokerMessagingTemplate)
Protected method for plugging in a custom subclass of
|
| protected MappingJackson2MessageConverter | |
| protected abstract SimpUserRegistry | createLocalUserRegistry(Integer
the order to use as a order)SmartApplicationListener.Create the user registry that provides access to local users. |
| private TaskExecutor | |
| public ApplicationContext | |
| protected final MessageBrokerRegistry | getBrokerRegistry(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
An accessor for the |
| protected final ChannelRegistration | |
| protected final ChannelRegistration | |
| public final PathMatcher | getPathMatcher(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
Provide access to the configured PatchMatcher for access from other configuration classes. |
| protected final int | |
| private static TaskExecutor | getTaskExecutor(ChannelRegistration registration, String threadNamePrefix, Supplier<TaskExecutor> fallback)
|
| public Validator | |
| protected int | |
| public TaskScheduler | |
| public void | setApplicationContext(ApplicationContext
the ApplicationContext object to be used by this object applicationContext)Implements org. Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object. |
| private static void | |
| public SimpAnnotationMethodMessageHandler | simpAnnotationMethodMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpMessagingTemplate brokerMessagingTemplate, CompositeMessageConverter brokerMessageConverter)
|
| public AbstractBrokerMessageHandler | simpleBrokerMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, AbstractSubscribableChannel brokerChannel, UserDestinationResolver userDestinationResolver)
|
| protected Validator | simpValidator()
Return an |
| public AbstractBrokerMessageHandler | stompBrokerRelayMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, AbstractSubscribableChannel brokerChannel, UserDestinationMessageHandler userDestinationMessageHandler, MessageHandler userRegistryMessageHandler, UserDestinationResolver userDestinationResolver)
|
| private void | updateUserDestinationResolver(AbstractBrokerMessageHandler handler, UserDestinationResolver userDestinationResolver, String userDestinationPrefix)
|
| public UserDestinationMessageHandler | userDestinationMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, AbstractSubscribableChannel brokerChannel, UserDestinationResolver userDestinationResolver)
|
| public UserDestinationResolver | userDestinationResolver(SimpUserRegistry userRegistry, AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
|
| public SimpUserRegistry | userRegistry(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
|
| public MessageHandler | userRegistryMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpUserRegistry userRegistry, SimpMessagingTemplate brokerMessagingTemplate, TaskScheduler scheduler)
|
| applicationContext | back to summary |
|---|---|
| private ApplicationContext applicationContext
| |
| brokerRegistry | back to summary |
|---|---|
| private MessageBrokerRegistry brokerRegistry
| |
| clientInboundChannelRegistration | back to summary |
|---|---|
| private ChannelRegistration clientInboundChannelRegistration
| |
| clientOutboundChannelRegistration | back to summary |
|---|---|
| private ChannelRegistration clientOutboundChannelRegistration
| |
| gsonPresent | back to summary |
|---|---|
| private static final boolean gsonPresent | |
| jackson2Present | back to summary |
|---|---|
| private static final boolean jackson2Present | |
| jsonbPresent | back to summary |
|---|---|
| private static final boolean jsonbPresent | |
| kotlinSerializationJsonPresent | back to summary |
|---|---|
| private static final boolean kotlinSerializationJsonPresent | |
| MVC_VALIDATOR_NAME | back to summary |
|---|---|
| private static final String MVC_VALIDATOR_NAME | |
| phase | back to summary |
|---|---|
| private Integer phase
| |
| AbstractMessageBrokerConfiguration | back to summary |
|---|---|
| protected AbstractMessageBrokerConfiguration() Protected constructor. | |
| addArgumentResolvers | back to summary |
|---|---|
| protected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) | |
| addReturnValueHandlers | back to summary |
|---|---|
| protected void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) | |
| brokerChannel | back to summary |
|---|---|
public AbstractSubscribableChannel brokerChannel(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, TaskExecutor executor)
| |
| brokerChannelExecutor | back to summary |
|---|---|
public TaskExecutor brokerChannelExecutor(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
| |
| brokerMessageConverter | back to summary |
|---|---|
public CompositeMessageConverter brokerMessageConverter()
| |
| brokerMessagingTemplate | back to summary |
|---|---|
public SimpMessagingTemplate brokerMessagingTemplate(AbstractSubscribableChannel brokerChannel, AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, CompositeMessageConverter brokerMessageConverter)
| |
| clientInboundChannel | back to summary |
|---|---|
public AbstractSubscribableChannel clientInboundChannel(TaskExecutor executor)
| |
| clientInboundChannelExecutor | back to summary |
|---|---|
public TaskExecutor clientInboundChannelExecutor()
| |
| clientOutboundChannel | back to summary |
|---|---|
public AbstractSubscribableChannel clientOutboundChannel(TaskExecutor executor)
| |
| clientOutboundChannelExecutor | back to summary |
|---|---|
public TaskExecutor clientOutboundChannelExecutor()
| |
| configureClientInboundChannel | back to summary |
|---|---|
| protected void configureClientInboundChannel(ChannelRegistration registration) A hook for subclasses to customize the message channel for inbound messages from WebSocket clients. | |
| configureClientOutboundChannel | back to summary |
|---|---|
| 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. | |
| configureMessageBroker | back to summary |
|---|---|
| protected void configureMessageBroker(MessageBrokerRegistry registry) A hook for subclasses to customize message broker configuration through the
provided | |
| configureMessageConverters | back to summary |
|---|---|
| protected boolean configureMessageConverters(List<MessageConverter> messageConverters) Override this method to add custom message converters.
| |
| createAnnotationMethodMessageHandler | back to summary |
|---|---|
| protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpMessagingTemplate brokerMessagingTemplate) Protected method for plugging in a custom subclass of
| |
| createJacksonConverter | back to summary |
|---|---|
| protected MappingJackson2MessageConverter createJacksonConverter() | |
| createLocalUserRegistry | back to summary |
|---|---|
| protected abstract SimpUserRegistry createLocalUserRegistry(Integer order) Create the user registry that provides access to local users.
| |
| defaultTaskExecutor | back to summary |
|---|---|
| private TaskExecutor defaultTaskExecutor() | |
| getApplicationContext | back to summary |
|---|---|
public ApplicationContext getApplicationContext()
| |
| getBrokerRegistry | back to summary |
|---|---|
| protected final MessageBrokerRegistry getBrokerRegistry(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel) An accessor for the | |
| getClientInboundChannelRegistration | back to summary |
|---|---|
| protected final ChannelRegistration getClientInboundChannelRegistration() | |
| getClientOutboundChannelRegistration | back to summary |
|---|---|
| protected final ChannelRegistration getClientOutboundChannelRegistration() | |
| getPathMatcher | back to summary |
|---|---|
| public final PathMatcher getPathMatcher(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel) Provide access to the configured PatchMatcher for access from other configuration classes.
| |
| getPhase | back to summary |
|---|---|
| protected final int getPhase() | |
| getTaskExecutor | back to summary |
|---|---|
| private static TaskExecutor getTaskExecutor(ChannelRegistration registration, String threadNamePrefix, Supplier<TaskExecutor> fallback) | |
| getValidator | back to summary |
|---|---|
| public Validator getValidator() Override this method to provide a custom
| |
| initPhase | back to summary |
|---|---|
| protected int initPhase() | |
| messageBrokerTaskScheduler | back to summary |
|---|---|
public TaskScheduler messageBrokerTaskScheduler()
| |
| setApplicationContext | back to summary |
|---|---|
| public void setApplicationContext(ApplicationContext applicationContext) Implements org. Doc from org. Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object. Invoked after population of normal bean properties but before an init callback such
as
| |
| setThreadNamePrefix | back to summary |
|---|---|
| private static void setThreadNamePrefix(TaskExecutor taskExecutor, String name) | |
| simpAnnotationMethodMessageHandler | back to summary |
|---|---|
public SimpAnnotationMethodMessageHandler simpAnnotationMethodMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpMessagingTemplate brokerMessagingTemplate, CompositeMessageConverter brokerMessageConverter)
| |
| simpleBrokerMessageHandler | back to summary |
|---|---|
| public AbstractBrokerMessageHandler simpleBrokerMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, AbstractSubscribableChannel brokerChannel, UserDestinationResolver userDestinationResolver) | |
| simpValidator | back to summary |
|---|---|
| protected Validator simpValidator() Return an In order, this method tries to get a Validator instance:
| |
| stompBrokerRelayMessageHandler | back to summary |
|---|---|
| public AbstractBrokerMessageHandler stompBrokerRelayMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, AbstractSubscribableChannel brokerChannel, UserDestinationMessageHandler userDestinationMessageHandler, MessageHandler userRegistryMessageHandler, UserDestinationResolver userDestinationResolver) | |
| updateUserDestinationResolver | back to summary |
|---|---|
| private void updateUserDestinationResolver(AbstractBrokerMessageHandler handler, UserDestinationResolver userDestinationResolver, String userDestinationPrefix) | |
| userDestinationMessageHandler | back to summary |
|---|---|
public UserDestinationMessageHandler userDestinationMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, AbstractSubscribableChannel brokerChannel, UserDestinationResolver userDestinationResolver)
| |
| userDestinationResolver | back to summary |
|---|---|
public UserDestinationResolver userDestinationResolver(SimpUserRegistry userRegistry, AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
| |
| userRegistry | back to summary |
|---|---|
public SimpUserRegistry userRegistry(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel)
| |
| userRegistryMessageHandler | back to summary |
|---|---|
| public MessageHandler userRegistryMessageHandler(AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpUserRegistry userRegistry, SimpMessagingTemplate brokerMessagingTemplate, TaskScheduler scheduler) | |