接口的使用
org.springframework.messaging.simp.user.UserDestinationResolver
使用UserDestinationResolver的程序包 程序包 说明 org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.org.springframework.messaging.simp.config中UserDestinationResolver的使用
返回UserDestinationResolver的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 UserDestinationResolver
AbstractMessageBrokerConfiguration. userDestinationResolver()
org.springframework.messaging.simp.user中UserDestinationResolver的使用
实现UserDestinationResolver的org.springframework.messaging.simp.user中的类 修饰符和类型 类 说明 class
DefaultUserDestinationResolver
A default implementation ofUserDestinationResolver
that relies on aSimpUserRegistry
to find active sessions for a user.返回UserDestinationResolver的org.springframework.messaging.simp.user中的方法 修饰符和类型 方法 说明 UserDestinationResolver
UserDestinationMessageHandler. getUserDestinationResolver()
Return the configuredUserDestinationResolver
.参数类型为UserDestinationResolver的org.springframework.messaging.simp.user中的构造器 构造器 说明 UserDestinationMessageHandler(SubscribableChannel clientInboundChannel, SubscribableChannel brokerChannel, UserDestinationResolver resolver)
Create an instance with the given client and broker channels subscribing to handle messages from each and then sending any resolved messages to the broker channel.