类的使用
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中的方法 修饰符和类型 方法 说明 ChannelRegistrationMessageBrokerRegistry. configureBrokerChannel()Customize the channel used to send messages from the application to the message broker.protected ChannelRegistrationMessageBrokerRegistry. getBrokerChannelRegistration()protected ChannelRegistrationAbstractMessageBrokerConfiguration. getClientInboundChannelRegistration()protected ChannelRegistrationAbstractMessageBrokerConfiguration. getClientOutboundChannelRegistration()ChannelRegistrationChannelRegistration. interceptors(ChannelInterceptor... interceptors)Configure the given interceptors for this message channel, adding them to the channel's current list of interceptors.ChannelRegistrationChannelRegistration. setInterceptors(ChannelInterceptor... interceptors)已过时。as of 4.3.12, in favor ofinterceptors(ChannelInterceptor...)参数类型为ChannelRegistration的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 protected voidAbstractMessageBrokerConfiguration. configureClientInboundChannel(ChannelRegistration registration)A hook for subclasses to customize the message channel for inbound messages from WebSocket clients.protected voidAbstractMessageBrokerConfiguration. 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中的方法 修饰符和类型 方法 说明 voidAbstractWebSocketMessageBrokerConfigurer. configureClientInboundChannel(ChannelRegistration registration)已过时。protected voidDelegatingWebSocketMessageBrokerConfiguration. configureClientInboundChannel(ChannelRegistration registration)default voidWebSocketMessageBrokerConfigurer. configureClientInboundChannel(ChannelRegistration registration)Configure theMessageChannelused for incoming messages from WebSocket clients.voidAbstractWebSocketMessageBrokerConfigurer. configureClientOutboundChannel(ChannelRegistration registration)已过时。protected voidDelegatingWebSocketMessageBrokerConfiguration. configureClientOutboundChannel(ChannelRegistration registration)default voidWebSocketMessageBrokerConfigurer. configureClientOutboundChannel(ChannelRegistration registration)Configure theMessageChannelused for outbound messages to WebSocket clients.