类的使用
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 SimpAttributes
SimpAttributesContextHolder. currentAttributes()
Return the SimpAttributes currently bound to the thread or raise anIllegalStateException
if none are bound.static SimpAttributes
SimpAttributes. fromMessage(Message<?> message)
Extract the SiMP session attributes from the given message and wrap them in aSimpAttributes
instance.static SimpAttributes
SimpAttributesContextHolder. getAttributes()
Return the SimpAttributes currently bound to the thread.参数类型为SimpAttributes的org.springframework.messaging.simp中的方法 修饰符和类型 方法 说明 static void
SimpAttributesContextHolder. setAttributes(SimpAttributes attributes)
Bind the given SimpAttributes to the current thread.