类的使用
org.springframework.messaging.simp.config.ChannelRegistration
使用ChannelRegistration的程序包 程序包 说明 org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.messaging.simp.config中ChannelRegistration的使用
返回ChannelRegistration的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 ChannelRegistration
MessageBrokerRegistry. configureBrokerChannel()
Customize the channel used to send messages from the application to the message broker.protected ChannelRegistration
MessageBrokerRegistry. getBrokerChannelRegistration()
protected ChannelRegistration
AbstractMessageBrokerConfiguration. getClientInboundChannelRegistration()
protected ChannelRegistration
AbstractMessageBrokerConfiguration. getClientOutboundChannelRegistration()
ChannelRegistration
ChannelRegistration. interceptors(ChannelInterceptor... interceptors)
Configure the given interceptors for this message channel, adding them to the channel's current list of interceptors.ChannelRegistration
ChannelRegistration. setInterceptors(ChannelInterceptor... interceptors)
已过时。as of 4.3.12, in favor ofinterceptors(ChannelInterceptor...)
参数类型为ChannelRegistration的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 protected void
AbstractMessageBrokerConfiguration. configureClientInboundChannel(ChannelRegistration registration)
A hook for subclasses to customize the message channel for inbound messages from WebSocket clients.protected void
AbstractMessageBrokerConfiguration. configureClientOutboundChannel(ChannelRegistration registration)
A hook for subclasses to customize the message channel for messages from the application or message broker to WebSocket clients.org.springframework.web.socket.config.annotation中ChannelRegistration的使用
参数类型为ChannelRegistration的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 void
AbstractWebSocketMessageBrokerConfigurer. configureClientInboundChannel(ChannelRegistration registration)
已过时。protected void
DelegatingWebSocketMessageBrokerConfiguration. configureClientInboundChannel(ChannelRegistration registration)
default void
WebSocketMessageBrokerConfigurer. configureClientInboundChannel(ChannelRegistration registration)
Configure theMessageChannel
used for incoming messages from WebSocket clients.void
AbstractWebSocketMessageBrokerConfigurer. configureClientOutboundChannel(ChannelRegistration registration)
已过时。protected void
DelegatingWebSocketMessageBrokerConfiguration. configureClientOutboundChannel(ChannelRegistration registration)
default void
WebSocketMessageBrokerConfigurer. configureClientOutboundChannel(ChannelRegistration registration)
Configure theMessageChannel
used for outbound messages to WebSocket clients.