类的使用
org.springframework.messaging.simp.SimpAttributes
使用SimpAttributes的程序包 程序包 说明 org.springframework.messaging.simp Generic support for Simple Messaging Protocols including protocols such as STOMP.org.springframework.messaging.simp中SimpAttributes的使用
返回SimpAttributes的org.springframework.messaging.simp中的方法 修饰符和类型 方法 说明 static SimpAttributesSimpAttributesContextHolder. currentAttributes()Return the SimpAttributes currently bound to the thread or raise anIllegalStateExceptionif none are bound.static SimpAttributesSimpAttributes. fromMessage(Message<?> message)Extract the SiMP session attributes from the given message and wrap them in aSimpAttributesinstance.static SimpAttributesSimpAttributesContextHolder. getAttributes()Return the SimpAttributes currently bound to the thread.参数类型为SimpAttributes的org.springframework.messaging.simp中的方法 修饰符和类型 方法 说明 static voidSimpAttributesContextHolder. setAttributes(SimpAttributes attributes)Bind the given SimpAttributes to the current thread.