类 AbstractWebSocketMessageBrokerConfigurer
- java.lang.Object
- org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
- 所有已实现的接口:
WebSocketMessageBrokerConfigurer
@Deprecated public abstract class AbstractWebSocketMessageBrokerConfigurer extends Object implements WebSocketMessageBrokerConfigurer
已过时。as of 5.0 in favor of simply usingWebSocketMessageBrokerConfigurer
which has default methods, made possible by a Java 8 baseline.A convenient abstract base class forWebSocketMessageBrokerConfigurer
implementations providing empty method implementations for optional methods.- 从以下版本开始:
- 4.0.1
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 AbstractWebSocketMessageBrokerConfigurer()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
已过时。Add resolvers to support custom controller method argument types.void
addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
已过时。Add handlers to support custom controller method return value types.void
configureClientInboundChannel(ChannelRegistration registration)
已过时。Configure theMessageChannel
used for incoming messages from WebSocket clients.void
configureClientOutboundChannel(ChannelRegistration registration)
已过时。Configure theMessageChannel
used for outbound messages to WebSocket clients.void
configureMessageBroker(MessageBrokerRegistry registry)
已过时。Configure message broker options.boolean
configureMessageConverters(List<MessageConverter> messageConverters)
已过时。Configure the message converters to use when extracting the payload of messages in annotated methods and when sending messages (e.g. through the "broker" SimpMessagingTemplate).void
configureWebSocketTransport(WebSocketTransportRegistration registration)
已过时。Configure options related to the processing of messages received from and sent to WebSocket clients.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
registerStompEndpoints
构造器详细资料
AbstractWebSocketMessageBrokerConfigurer
public AbstractWebSocketMessageBrokerConfigurer()
已过时。
方法详细资料
configureWebSocketTransport
public void configureWebSocketTransport(WebSocketTransportRegistration registration)
已过时。从接口复制的说明:WebSocketMessageBrokerConfigurer
Configure options related to the processing of messages received from and sent to WebSocket clients.
configureClientInboundChannel
public void configureClientInboundChannel(ChannelRegistration registration)
已过时。从接口复制的说明:WebSocketMessageBrokerConfigurer
Configure theMessageChannel
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.
configureClientOutboundChannel
public void configureClientOutboundChannel(ChannelRegistration registration)
已过时。从接口复制的说明:WebSocketMessageBrokerConfigurer
Configure theMessageChannel
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.
configureMessageConverters
public boolean configureMessageConverters(List<MessageConverter> messageConverters)
已过时。从接口复制的说明:WebSocketMessageBrokerConfigurer
Configure the message converters to use when extracting the payload of messages in annotated methods and when sending messages (e.g. through the "broker" SimpMessagingTemplate).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
在接口中WebSocketMessageBrokerConfigurer
- 参数:
messageConverters
- the converters to configure (initially an empty list)- 返回:
- whether to also add default converter or not
addArgumentResolvers
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
已过时。从接口复制的说明:WebSocketMessageBrokerConfigurer
Add resolvers to support custom controller method argument types.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
在接口中WebSocketMessageBrokerConfigurer
- 参数:
argumentResolvers
- the resolvers to register (initially an empty list)
addReturnValueHandlers
public void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
已过时。从接口复制的说明:WebSocketMessageBrokerConfigurer
Add handlers to support custom controller method return value types.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
在接口中WebSocketMessageBrokerConfigurer
- 参数:
returnValueHandlers
- the handlers to register (initially an empty list)
configureMessageBroker
public void configureMessageBroker(MessageBrokerRegistry registry)
已过时。从接口复制的说明:WebSocketMessageBrokerConfigurer
Configure message broker options.