public abstract class WampSessionContextHolder extends Object
| Constructor and Description |
|---|
WampSessionContextHolder() |
| Modifier and Type | Method and Description |
|---|---|
static WampSession |
currentAttributes()
Return the WampSession currently bound to the thread or raise an
IllegalStateException if none are bound.. |
static WampSession |
getAttributes()
Return the WampSession currently bound to the thread.
|
static void |
resetAttributes()
Reset the WampSession for the current thread.
|
static void |
setAttributes(WampSession attributes)
Bind the given WampSession to the current thread,
|
static void |
setAttributesFromMessage(WampMessage message)
Extract the WAMP session attributes from the given message, wrap them in a
WampSession instance and bind it to the current thread, |
public static void resetAttributes()
public static void setAttributes(WampSession attributes)
attributes - the RequestAttributes to exposepublic static void setAttributesFromMessage(WampMessage message)
WampSession instance and bind it to the current thread,message - the message to extract session attributes frompublic static WampSession getAttributes()
null if not boundpublic static WampSession currentAttributes() throws IllegalStateException
IllegalStateException if none are bound..nullIllegalStateException - if attributes are not boundCopyright © 2014–2017. All rights reserved.