WebSocketMessageBrokerConfigurer
which has default methods, made possible by a Java 8 baseline.@Deprecated public abstract class AbstractWebSocketMessageBrokerConfigurer extends Object implements WebSocketMessageBrokerConfigurer
WebSocketMessageBrokerConfigurer
implementations providing empty method implementations for optional methods.Constructor and Description |
---|
AbstractWebSocketMessageBrokerConfigurer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
Deprecated.
Add resolvers to support custom controller method argument types.
|
void |
addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Deprecated.
Add handlers to support custom controller method return value types.
|
void |
configureClientInboundChannel(ChannelRegistration registration)
Deprecated.
Configure the
MessageChannel used for
incoming messages from WebSocket clients. |
void |
configureClientOutboundChannel(ChannelRegistration registration)
Deprecated.
Configure the
MessageChannel used for
outbound messages to WebSocket clients. |
void |
configureMessageBroker(MessageBrokerRegistry registry)
Deprecated.
Configure message broker options.
|
boolean |
configureMessageConverters(List<MessageConverter> messageConverters)
Deprecated.
Configure the message converters to use when extracting the payload of
messages in annotated methods and when sending messages (e.g.
|
void |
configureWebSocketTransport(WebSocketTransportRegistration registration)
Deprecated.
Configure options related to the processing of messages received from and
sent to WebSocket clients.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerStompEndpoints
public AbstractWebSocketMessageBrokerConfigurer()
public void configureWebSocketTransport(WebSocketTransportRegistration registration)
WebSocketMessageBrokerConfigurer
configureWebSocketTransport
in interface WebSocketMessageBrokerConfigurer
public void configureClientInboundChannel(ChannelRegistration registration)
WebSocketMessageBrokerConfigurer
MessageChannel
used for
incoming messages from WebSocket clients. By default the channel is backed
by a thread pool of size 1. It is recommended to customize thread pool
settings for production use.configureClientInboundChannel
in interface WebSocketMessageBrokerConfigurer
public void configureClientOutboundChannel(ChannelRegistration registration)
WebSocketMessageBrokerConfigurer
MessageChannel
used for
outbound messages to WebSocket clients. By default the channel is backed
by a thread pool of size 1. It is recommended to customize thread pool
settings for production use.configureClientOutboundChannel
in interface WebSocketMessageBrokerConfigurer
public boolean configureMessageConverters(List<MessageConverter> messageConverters)
WebSocketMessageBrokerConfigurer
The provided list, initially empty, can be used to add message converters while the boolean return value is used to determine if default message should be added as well.
configureMessageConverters
in interface WebSocketMessageBrokerConfigurer
messageConverters
- the converters to configure (initially an empty list)public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
WebSocketMessageBrokerConfigurer
This does not override the built-in support for resolving handler
method arguments. To customize the built-in support for argument
resolution, configure SimpAnnotationMethodMessageHandler
directly.
addArgumentResolvers
in interface WebSocketMessageBrokerConfigurer
argumentResolvers
- the resolvers to register (initially an empty list)public void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
WebSocketMessageBrokerConfigurer
Using this option does not override the built-in support for handling
return values. To customize the built-in support for handling return
values, configure SimpAnnotationMethodMessageHandler
directly.
addReturnValueHandlers
in interface WebSocketMessageBrokerConfigurer
returnValueHandlers
- the handlers to register (initially an empty list)public void configureMessageBroker(MessageBrokerRegistry registry)
WebSocketMessageBrokerConfigurer
configureMessageBroker
in interface WebSocketMessageBrokerConfigurer